mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-24 17:35:57 +03:00
Fix string passed to DateTimeImmutable
This commit is contained in:
@@ -140,7 +140,9 @@ trait DeprecatedUuidMethodsTrait
|
||||
|
||||
try {
|
||||
return new DateTimeImmutable(
|
||||
date('Y-m-d H:i:s', (int) $time->getSeconds()->toString()) . '.'
|
||||
'@'
|
||||
. $time->getSeconds()->toString()
|
||||
. '.'
|
||||
. str_pad($time->getMicroSeconds()->toString(), 6, '0', STR_PAD_LEFT)
|
||||
);
|
||||
} catch (Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user