Skip to content

Commit

Permalink
Keep microtime presision
Browse files Browse the repository at this point in the history
  • Loading branch information
freost committed Aug 20, 2024
1 parent 20f36f2 commit f05d463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mako/chrono/traits/TimeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function createFromFormat(string $format, string $time, null|DateT
$dateTime = parent::createFromFormat($format, $time);
}

return new static($dateTime->format('Y-m-d\TH:i:s'), $dateTime->getTimeZone());
return new static($dateTime->format('Y-m-d\TH:i:s.u'), $dateTime->getTimeZone());
}

/**
Expand Down

0 comments on commit f05d463

Please sign in to comment.