mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-24 17:35:57 +03:00
fix: ensure monotonicity for version 7 UUIDs
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ final class Time implements TypeInterface
|
||||
|
||||
public function toString(): string
|
||||
{
|
||||
return $this->seconds->toString() . '.' . $this->microseconds->toString();
|
||||
return $this->seconds->toString() . '.' . sprintf('%06s', $this->microseconds->toString());
|
||||
}
|
||||
|
||||
public function __toString(): string
|
||||
|
||||
Reference in New Issue
Block a user