Skip to content

Commit f7eb464

Browse files
committed
Round value to millisecond
1 parent ee448f5 commit f7eb464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/timestamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, value: str | ZonedDateTime | Timestamp | None = None):
3030
elif isinstance(value, str):
3131
self._obj = self._parse_string(value)
3232
else:
33-
self._obj = ZonedDateTime.now("UTC")
33+
self._obj = ZonedDateTime.now("UTC").round(unit="microsecond")
3434

3535
@property
3636
def obj(self) -> ZonedDateTime:

0 commit comments

Comments
 (0)