From f30f3329576bfa0972c58e58bb9e6f666adef901 Mon Sep 17 00:00:00 2001 From: nicoco Date: Sat, 27 Jul 2024 08:49:07 +0200 Subject: [PATCH] fix: timestamp is in ms, not in seconds --- messlidger/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messlidger/group.py b/messlidger/group.py index 73d0391..d21d1ee 100644 --- a/messlidger/group.py +++ b/messlidger/group.py @@ -115,7 +115,7 @@ class MUC(LegacyMUC[int, str, "Participant", int]): for m in t.messages.nodes: if not m.id: continue - timestamp = datetime.fromtimestamp(m.timestamp) + timestamp = datetime.fromtimestamp(m.timestamp / 1_000) if after is not None and timestamp < after.timestamp: continue if before is not None and timestamp > before.timestamp: -- 2.45.2