Skip to content

Commit

Permalink
Merge pull request #18 from MRT-Map/iso
Browse files Browse the repository at this point in the history
use ISO 8601 for timestamp
  • Loading branch information
iiiii7d authored Jun 27, 2024
2 parents 856b530 + c27dfe4 commit 0e34b05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Ser(msgspec.Struct, kw_only=True):
"""A :py:class:`SeaContext` object"""
bus: SeaContext.Ser
"""A :py:class:`BusContext` object"""
timestamp: str = msgspec.field(default_factory=lambda: datetime.datetime.now().strftime("%Y%m%d-%H%:M%:S%Z")) # noqa: DTZ005
timestamp: str = msgspec.field(default_factory=lambda: datetime.datetime.now().isoformat()) # noqa: DTZ005
"""Time that the aggregation of the data was done"""
version: int = 1
"""Version number of the database format"""
Expand Down

0 comments on commit 0e34b05

Please sign in to comment.