Skip to content

Conversation

@punkbit
Copy link
Collaborator

@punkbit punkbit commented Jan 22, 2026

Why?

Found inconsistent timezone abbreviations across timezones, causing test failures, e.g. users in En-US get "EST", while EN-UK get "GMT-5".

For example, let's say we call:

formatTimezone(date, "America/New_York")

Where date is:

'Thu Jan 22 2026 13:25:56 GMT+0000 (Greenwich Mean Time)'

The following is expected:

"EST"

But someone based in London/UK would get:

"GMT-5"

How?

  • Declares a default timezone for date formatter
  • Split formatTimezone into date utils
  • Creates a test/spec for date utils, formatTimezone

Preview?

Browser session as En-UK

Screenshot 2026-01-22 at 13 29 39

Browser session as En-US

Screenshot 2026-01-22 at 13 30 23

@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2026

⚠️ No Changeset found

Latest commit: 2b62c14

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jan 22, 2026

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

Project Deployment Review Updated (UTC)
click-ui Ready Ready Preview, Comment Jan 22, 2026 1:36pm

Request Review

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.

2 participants