You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix timezone handling to be fully client-side aware
Frontend changes:
- Replace date string format with full UTC timestamp boundaries
- Calculate local day start/end in browser (e.g., Nov 29 PST = 08:00-08:00 UTC)
- Send start/end timestamps instead of date strings to API
- Backend now receives exact UTC time ranges for client's local day
Backend changes:
- Update GetHourlyStats to accept start/end timestamps instead of date
- Update GetModelStats to accept start/end timestamps instead of date
- Remove server-side date parsing and timezone interpretation
- Backend is now completely timezone-agnostic
This ensures "Today" shows correct data regardless of client timezone.
No more date/timezone confusion between client and server.
0 commit comments