fix(dashboard): convert UTC times to Beijing time before today/yesterday delta calculation

This commit is contained in:
2026-07-28 07:29:12 +08:00
parent ae1a23143e
commit c23de38b21
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -630,7 +630,7 @@ def dashboard(request: Request, user: User = Depends(get_current_user_web), db:
"countries": countries, "recent": recent,
"sent_pct": sent_pct, "delivered_pct": delivered_pct, "received_pct": received_pct,
"sent_country_stats": sent_country_stats, "received_country_stats": received_country_stats,
"now": datetime.now(_tz.utc),
"now": datetime.now(_tz.utc) + timedelta(hours=8),
})