mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 20:14:16 +08:00
客户端 toISOString 生成带 Z 的 UTC, Python 3.12 解析为 aware datetime, 与行内 naive 北京时间比较 TypeError (第二轮轮询 500), 且换算差 8 小时。 - 客户端: since 直接回传最旧最后一根的原始 datetime 字符串 (同格式同时区, 字典序即时间序), 消灭一切换算 - 服务端: fromisoformat 后 aware 输入先转北京墙钟再去 tzinfo, 防御旧客户端