docs: 更新验证报告,记录时区 bug 修复

refactor3.0
Lxy 2 weeks ago
parent 98567a3204
commit 842a04b304

@ -162,7 +162,28 @@
--- ---
## 6. 最终评估 ## 6. 热修复记录
### 2026-07-04 时区 bug 修复
**问题**: 手动验证时发现,点击"刷新全部"后前端无数据显示。
**根因**: `storage_manager.py` 第 263 行 `datetime.fromisoformat()` 解析时间戳时保留了时区信息(`+08:00`),但第 276 行 `datetime.now()` 返回 naive datetime两者相减导致 `TypeError: can't subtract offset-naive and offset-aware datetimes`
**修复**: 在 `_merge_period_results` 中解析时间戳后去掉时区信息:
```python
timestamp_dt = datetime.fromisoformat(timestamp_raw)
if timestamp_dt.tzinfo is not None:
timestamp_dt = timestamp_dt.replace(tzinfo=None)
```
**提交**: `98567a3` - fix: 修复时区不匹配导致行情数据读取失败
**验证**: 修复后手动验证通过MySQL 190 条记录、Redis 190 个键正常读写。
---
## 7. 最终评估
**通过 ✅** **通过 ✅**

Loading…
Cancel
Save