fix: 统一时区处理,准确率统计使用CST时间分组

- 增强 convert_to_cst() 函数,新增 source_tz 参数支持 UTC/ET/CST 输入
- 修改 get_monthly_stats() 使用 CONVERT_TZ 按 CST 月份统计
- 修改 get_daily_stats() 使用 CONVERT_TZ 按 CST 日期分组
- 修改 get_hourly_details() 按 CST 日期筛选和小时排序
- 交易记录使用 source_tz='CST' 避免重复转换
- 前端表头添加'(北京)'时区标注
This commit is contained in:
crypto_predictor committed 2026-02-07 18:14:37 +08:00
1 parent 6182630203
commit 8cdfb2a8e2
2 files changed
+44 -26

No files matched your search

+2 -2
View File
@@ -259,7 +259,7 @@
<table class="table table-hover mb-0">
<thead class="table-light">
<tr>
<th>日期</th>
<th>日期 (北京)</th>
<th>DLinear 预测</th>
<th>DLinear 准确率</th>
<th>TTM-R2 预测</th>
@@ -341,7 +341,7 @@
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
<i class="bi bi-clock"></i> {{ hourlyModal.date }} 每小时预测详情
<i class="bi bi-clock"></i> {{ hourlyModal.date }} 每小时预测详情 (北京时间)
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>