Fix string passed to DateTimeImmutable

This commit is contained in:
Ben Ramsey
2020-01-20 19:34:47 -06:00
parent 5d7c0f2210
commit a5c7314f8d
3 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -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) {