From f4a97a9276d6614bcd634bc0bf64e45b77b58bdb Mon Sep 17 00:00:00 2001 From: Oliver Rahner Date: Tue, 16 Jul 2024 17:03:09 +0200 Subject: [PATCH] replace ISO string timestamp with unix timestamp --- src/agrirouter/api/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agrirouter/api/messages.py b/src/agrirouter/api/messages.py index 8160a18..6f05923 100644 --- a/src/agrirouter/api/messages.py +++ b/src/agrirouter/api/messages.py @@ -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 {