Skip to content

fix(web): public pages use browser timezone#33

Merged
VrianCao merged 1 commit intomasterfrom
fix/32-browser-timezone-display
Feb 22, 2026
Merged

fix(web): public pages use browser timezone#33
VrianCao merged 1 commit intomasterfrom
fix/32-browser-timezone-display

Conversation

@VrianCao
Copy link
Owner

What

  • Use browser timezone for public-page timestamp display (status / incident history / maintenance history)
  • Add getBrowserTimeZone() helper with safe fallback

Why

How

  • Prefer Intl.DateTimeFormat().resolvedOptions().timeZone
  • Fallback to site_timezone, then UTC if unavailable

Verify

  • pnpm --filter @uptimer/web typecheck
  • pnpm --filter @uptimer/web lint
  • Override browser timezone in DevTools and confirm timestamps change

Closes #32

@VrianCao VrianCao merged commit 9433478 into master Feb 22, 2026
4 checks passed
@VrianCao VrianCao deleted the fix/32-browser-timezone-display branch February 23, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 应该显示的时间应该跟随用户浏览器时区

1 participant