Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jun 4, 2018
1 parent 5dba2a1 commit d70c9f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hydrator/DateTimeImmutableHydrator.php
Expand Up @@ -10,6 +10,7 @@

namespace hiqdev\yii\DataMapper\hydrator;

use DateTime;
use DateTimeImmutable;

/**
Expand All @@ -34,6 +35,6 @@ public function hydrate(array $data, $object)
*/
public function extract($object)
{
return $object->time->format(DateTimeImmutable::ATOM);
return $object->format(DateTime::ATOM);
}
}

0 comments on commit d70c9f3

Please sign in to comment.