-
-
Notifications
You must be signed in to change notification settings - Fork 79
Fixes various inconsistencies and outdated mappings in timezone data #585
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?
Changes from all commits
054d9b1
72948db
91c6134
b7b921d
7c80eb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,12 +13,16 @@ const timezoneData: {name: string; label: string}[] = [ | |
}, | ||
{ | ||
name: 'America/Tijuana', | ||
label: '(GMT -8:00) Chihuahua, La Paz, Mazatlan' | ||
label: '(GMT -8:00) Tijuana' | ||
}, | ||
{ | ||
name: 'America/Los_Angeles', | ||
label: '(GMT -8:00) Pacific Time (US & Canada); Tijuana' | ||
label: '(GMT -8:00) Pacific Time (US & Canada)' | ||
}, | ||
{ | ||
name: 'America/Mazatlan', | ||
label: '(GMT -7:00) La Paz, Mazatlan' | ||
}, | ||
{ | ||
name: 'America/Phoenix', | ||
label: '(GMT -7:00) Arizona' | ||
|
@@ -27,6 +31,10 @@ const timezoneData: {name: string; label: string}[] = [ | |
name: 'America/Denver', | ||
label: '(GMT -7:00) Mountain Time (US & Canada)' | ||
}, | ||
{ | ||
name: 'America/Chihuahua', | ||
label: '(GMT -6:00) Chihuahua' | ||
}, | ||
{ | ||
name: 'America/Costa_Rica', | ||
label: '(GMT -6:00) Central America' | ||
|
@@ -57,7 +65,7 @@ const timezoneData: {name: string; label: string}[] = [ | |
}, | ||
{ | ||
name: 'America/Caracas', | ||
label: '(GMT -4:00) Caracas, La Paz' | ||
label: '(GMT -4:00) Caracas, La Paz, Georgetown' | ||
}, | ||
{ | ||
name: 'America/Halifax', | ||
|
@@ -73,7 +81,7 @@ const timezoneData: {name: string; label: string}[] = [ | |
}, | ||
{ | ||
name: 'America/Argentina/Buenos_Aires', | ||
label: '(GMT -3:00) Buenos Aires, Brasilia, Georgetown' | ||
label: '(GMT -3:00) Buenos Aires, Brasilia' | ||
}, | ||
{ | ||
name: 'America/Noronha', | ||
|
@@ -175,6 +183,10 @@ const timezoneData: {name: string; label: string}[] = [ | |
name: 'Asia/Kabul', | ||
label: '(GMT +4:30) Kabul' | ||
}, | ||
{ | ||
name: 'Asia/Almaty', | ||
label: '(GMT +5:00) Almaty, Astana' | ||
}, | ||
{ | ||
name: 'Asia/Karachi', | ||
label: '(GMT +5:00) Islamabad, Karachi, Tashkent' | ||
|
@@ -185,39 +197,40 @@ const timezoneData: {name: string; label: string}[] = [ | |
}, | ||
{ | ||
name: 'Asia/Kolkata', | ||
label: '(GMT +5:30) Chennai, Calcutta, Mumbai, New Delhi' | ||
label: '(GMT +5:30) Chennai, Kolkata, Mumbai, New Delhi' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: i know this list was already existing, but same suggestion here about putting the city that matches the time zone first in the list (again, unless there's a reason for the order) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to my earlier comment, the cities here are in alphabetical order, so putting Kolkata first would break that. |
||
}, | ||
{ | ||
name: 'Asia/Kathmandu', | ||
label: '(GMT +5:45) Katmandu' | ||
name: 'Asia/Colombo', | ||
label: '(GMT +5:30) Colombo, Sri Jayawardenepura' | ||
}, | ||
{ | ||
name: 'Asia/Almaty', | ||
label: '(GMT +6:00) Almaty, Novosibirsk' | ||
name: 'Asia/Kathmandu', | ||
label: '(GMT +5:45) Kathmandu' | ||
}, | ||
|
||
{ | ||
name: 'Asia/Dhaka', | ||
label: '(GMT +6:00) Astana, Dhaka, Sri Jayawardenepura' | ||
label: '(GMT +6:00) Dhaka' | ||
}, | ||
{ | ||
name: 'Asia/Rangoon', | ||
label: '(GMT +6:30) Rangoon' | ||
label: '(GMT +6:30) Yangon (Rangoon)' | ||
}, | ||
{ | ||
name: 'Asia/Bangkok', | ||
label: '(GMT +7:00) Bangkok, Hanoi, Jakarta' | ||
}, | ||
{ | ||
name: 'Asia/Krasnoyarsk', | ||
label: '(GMT +7:00) Krasnoyarsk' | ||
label: '(GMT +7:00) Krasnoyarsk,Novosibirsk' | ||
Comment on lines
224
to
+225
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (blocking): Instead of adding Novosibirsk here to I did some brief reading and the history is pretty confusing, but I think they each have their own time zone identifier even if they currently observe the same times year-round. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I initially considered adding In short, here's my thinking:
That’s my reasoning, but I’m happy to revisit if you feel strongly about keeping Novosibirsk separate. |
||
}, | ||
{ | ||
name: 'Asia/Hong_Kong', | ||
label: '(GMT +8:00) Beijing, Chongqing, Hong Kong, Urumqi' | ||
}, | ||
{ | ||
name: 'Asia/Irkutsk', | ||
label: '(GMT +8:00) Irkutsk, Ulaan Bataar' | ||
label: '(GMT +8:00) Irkutsk, Ulaanbaatar' | ||
}, | ||
{ | ||
name: 'Asia/Singapore', | ||
|
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.
nit: it might make sense to put the city that matches the time zone first (especially since there's two different "La Paz" in this file), unless there's a reason for doing it this way i'm not aware of.
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.
Thanks for the suggestion. The timezone isn’t exposed to the user in the frontend, only the label is. The cities in the label follow alphabetical order, and putting Mazatlan in front would break this order. Was there a specific reason you think putting the city matching the timezone first would work better here?