fix: compare timestamp

Signed-off-by: Frost Ming <me@frostming.com>
This commit is contained in:
Frost Ming
2025-07-09 12:56:05 +08:00
parent 3cc5a4447c
commit 124b2f0d9b

View File

@ -92,7 +92,7 @@ class MessageStore:
WHERE chat_id = ? AND timestamp >= ? WHERE chat_id = ? AND timestamp >= ?
ORDER BY timestamp ASC; ORDER BY timestamp ASC;
""", """,
(chat_id, since.isoformat()), (chat_id, since.astimezone(timezone.utc).isoformat()),
) )
rows = cursor.fetchall() rows = cursor.fetchall()
return [ return [