Skip to content

Commit

Permalink
fix update_at missmatch of types (#7)
Browse files Browse the repository at this point in the history
* fix update_at missmatch of types
  • Loading branch information
l-you authored Jul 22, 2024
1 parent eac21dd commit 7538415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Normalizer/CashierModelNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ public function denormalize(mixed $data, string $type, ?string $format = null, a
unset($data['permissions']);
}
if (array_key_exists('created_at', $data)) {
$object->setCreatedAt(DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['created_at']));
$object->setCreatedAt(DateTime::createFromFormat('Y-m-d\\TH:i:s.uP', $data['created_at']));
unset($data['created_at']);
}
if (array_key_exists('updated_at', $data)) {
$object->setUpdatedAt(null === $data['updated_at'] ? null : DateTime::createFromFormat('Y-m-d\TH:i:sP', $data['updated_at']));
$object->setUpdatedAt(null === $data['updated_at'] ? null : DateTime::createFromFormat('Y-m-d\\TH:i:s.uP', $data['updated_at']));
unset($data['updated_at']);
}
if (array_key_exists('certificate_end', $data)) {
Expand Down

0 comments on commit 7538415

Please sign in to comment.