Skip to content

Commit

Permalink
replace ISO string timestamp with unix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverrahner committed Jul 16, 2024
1 parent 1f3086d commit f4a97a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agrirouter/api/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Message:

def __init__(self, content):
self.content = content
self.timestamp = UtcTimeUtil.now_as_utc_str()
self.timestamp = str(int(UtcTimeUtil.now_as_utc_timestamp().timestamp()))

def json_serialize(self) -> dict:
return {
Expand Down

0 comments on commit f4a97a9

Please sign in to comment.