Co-Authored-By: Nil Puig <244631886+npuigm@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang Baek
2026-02-28 17:08:41 -06:00
parent 40d90286b6
commit 499ca282e5

View File

@@ -127,6 +127,11 @@ def upgrade() -> None:
timestamp = message.get("timestamp", now)
try:
timestamp = int(float(timestamp))
except Exception as e:
timestamp = now
# Normalize timestamp: convert ms to seconds, validate range
if timestamp > 10_000_000_000:
timestamp = timestamp // 1000