diff --git a/handlers/summary/messages.py b/handlers/summary/messages.py index 212c125..a39a842 100644 --- a/handlers/summary/messages.py +++ b/handlers/summary/messages.py @@ -92,7 +92,7 @@ class MessageStore: WHERE chat_id = ? AND timestamp >= ? ORDER BY timestamp ASC; """, - (chat_id, since.isoformat()), + (chat_id, since.astimezone(timezone.utc).isoformat()), ) rows = cursor.fetchall() return [