-
Notifications
You must be signed in to change notification settings - Fork 15
fix: 🐛 timezones abbreviations inconsistency/mismatch across timezones #766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
hoorayimhelping
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One suggestion
| }: { | ||
| date: Dayjs; | ||
| timezone?: string; | ||
| locales?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be called locale not locales
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:
Where date is:
The following is expected:
"EST"But someone based in London/UK would get:
"GMT-5"How?
Preview?