Skip to content

feat: display dates in user's local timezone - #52

Merged
jasoncrawford merged 1 commit into
mainfrom
feature/local-timezone-display
Feb 23, 2026
Merged

jasoncrawford merged 1 commit into
mainfrom
feature/local-timezone-display

Conversation

@jasoncrawford

Copy link
Copy Markdown
Collaborator

Summary

  • Detect the browser's timezone via Intl API (fallback: US Pacific) and display all dates/times in the user's local time with a short abbreviation (e.g., PST, EDT)
  • New LocalIncidentRange and LocalDateTime client components handle timezone-aware rendering with suppressHydrationWarning
  • Updated all 5 call sites (incident lists, incident detail, check log table) to use the new components
  • Added 11 tests covering formatIncidentRange and formatDateTime across Eastern, Pacific, and UTC timezones

Closes #50

Test plan

  • npx vitest run — all 112 tests pass (26 format tests including 11 new)
  • npx next lint — clean (no new warnings)
  • Verify on preview deploy: dates show timezone abbreviation and reflect local time
  • Check DST abbreviation correctness (PST vs PDT)

🤖 Generated with Claude Code

@vercel

vercel Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
site-status Ready Ready Preview, Comment Feb 23, 2026 3:34am

Request Review

@supabase

supabase Bot commented Feb 23, 2026 •

Copy link
Copy Markdown

Updates to Preview Branch (feature/local-timezone-display) ↗︎

Deployments Status Updated
Database ✅ Mon, 23 Feb 2026 03:34:56 UTC
Services ✅ Mon, 23 Feb 2026 03:34:56 UTC
APIs ✅ Mon, 23 Feb 2026 03:34:56 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations ✅ Mon, 23 Feb 2026 03:34:57 UTC
Migrations ✅ Mon, 23 Feb 2026 03:34:58 UTC
Seeding ✅ Mon, 23 Feb 2026 03:34:59 UTC
Edge Functions ✅ Mon, 23 Feb 2026 03:34:59 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

Detect the browser's timezone via Intl API (fallback: US Pacific) and
render all dates/times in the user's local time with a short timezone
abbreviation (e.g., PST, EDT). Moves date rendering into client
components to access the browser timezone.

Closes #50

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jasoncrawford
jasoncrawford force-pushed the feature/local-timezone-display branch from 08a8c93 to a6731e0 Compare February 23, 2026 03:34
@jasoncrawford
jasoncrawford merged commit ca40272 into main Feb 23, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — a6731e06 Deployed Feb 23, 2026 by vercel[bot]
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.

Time stamps and time zones

1 participant