The dashboard displays all timestamps in a single hardcoded timezone instead of the viewer's local timezone. A user in CEST saw all times rendered as Pacific.
dashboardTimeZone() in packages/junior-dashboard/src/app.ts returns process.env.JUNIOR_TIMEZONE || "America/Los_Angeles" — a single server-wide value.
- This value is served via
/api/config and applied globally client-side in App.tsx (setDashboardTimeZone(data.config.timeZone)).
packages/junior-dashboard/src/client/format.ts then forces every toLocaleString/toLocaleTimeString call to use that fixed timeZone, regardless of the viewer's actual local timezone.
Every viewer of the dashboard sees the same fixed timezone rather than their own.
via Daniel Szoke.
--
View Junior Session in Sentry
The dashboard displays all timestamps in a single hardcoded timezone instead of the viewer's local timezone. A user in CEST saw all times rendered as Pacific.
dashboardTimeZone()inpackages/junior-dashboard/src/app.tsreturnsprocess.env.JUNIOR_TIMEZONE || "America/Los_Angeles"— a single server-wide value./api/configand applied globally client-side inApp.tsx(setDashboardTimeZone(data.config.timeZone)).packages/junior-dashboard/src/client/format.tsthen forces everytoLocaleString/toLocaleTimeStringcall to use that fixedtimeZone, regardless of the viewer's actual local timezone.Every viewer of the dashboard sees the same fixed timezone rather than their own.
via Daniel Szoke.
--
View Junior Session in Sentry