fix(dashboard): convert UTC times to Beijing time before today/yesterday delta calculation
This commit is contained in:
+1
-1
@@ -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),
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user