refactor: use epoch time stamp
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ namespace KTXM\ProviderLocalChrono\Providers\Personal;
|
||||
|
||||
use KTXF\Chrono\Collection\CollectionMutableAbstract;
|
||||
use KTXF\Resource\Identifier\CollectionIdentifier;
|
||||
use KTXF\Utile\Timestamp;
|
||||
|
||||
class CollectionResource extends CollectionMutableAbstract {
|
||||
|
||||
@@ -73,8 +74,8 @@ class CollectionResource extends CollectionMutableAbstract {
|
||||
'rank' => $properties->getRank(),
|
||||
'visibility' => $properties->getVisibility(),
|
||||
'color' => $properties->getColor(),
|
||||
'createdOn' => $this->data[self::PROPERTY_CREATED] ?? null,
|
||||
'modifiedOn' => $this->data[self::PROPERTY_MODIFIED] ?? null,
|
||||
'createdOn' => Timestamp::normalize($this->data[self::PROPERTY_CREATED] ?? null),
|
||||
'modifiedOn' => Timestamp::normalize($this->data[self::PROPERTY_MODIFIED] ?? null),
|
||||
'signature' => $this->data[self::PROPERTY_SIGNATURE] ?? null,
|
||||
'enabled' => $this->collectionEnabled,
|
||||
], static fn($value) => $value !== null);
|
||||
|
||||
Reference in New Issue
Block a user