fix: ensure monotonicity for version 7 UUIDs

This commit is contained in:
Ben Ramsey
2022-11-05 16:28:33 -05:00
parent f9c65d9852
commit 0ba1ffb029
8 changed files with 384 additions and 66 deletions
+1 -1
View File
@@ -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