Skip to content

Dashboard timestamps always show Pacific time, ignoring browser timezone #1799

Description

@sentry-junior

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions