When I use MomentJS or Internationalization API, I get obsolete timezones like Asia/Katmandu
or Asia/Calcutta
in Chrome! These should instead be outputted as Asia/Kathmandu
and Asia/Kolkata
.
How do I fix this?
I made a list of the obsolete timezones which you can use to compare the wrong one with the right one and output the right timezone.
P.S. In fact, if you are using PHP, this might turn out to be a huge problem while doing date_default_timezone_set()
.
So, here's the list:
(Left-Hand side is wrong one and the right-hand side is the right one)
Africa/Asmera = Africa/Asmara
Africa/Timbuktu = Africa/Abidjan
America/Argentina/ComodRivadavia = America/Argentina/Catamarca
America/Atka = America/Adak
America/Buenos_Aires = America/Argentina/Buenos_Aires
America/Catamarca = America/Argentina/Catamarca
America/Coral_Harbour = America/Atikokan
America/Cordoba = America/Argentina/Cordoba
America/Ensenada = America/Tijuana
America/Fort_Wayne = America/Indiana/Indianapolis
America/Indianapolis = America/Indiana/Indianapolis
America/Jujuy = America/Argentina/Jujuy
America/Knox_IN = America/Indiana/Knox
America/Louisville = America/Kentucky/Louisville
America/Mendoza = America/Argentina/Mendoza
America/Montreal = America/Toronto
America/Porto_Acre = America/Rio_Branco
America/Rosario = America/Argentina/Cordoba
America/Santa_Isabel = America/Tijuana
America/Shiprock = America/Denver
America/Virgin = America/Port_of_Spain
Antarctica/South_Pole = Pacific/Auckland
Asia/Ashkhabad = Asia/Ashgabat
Asia/Calcutta = Asia/Kolkata
Asia/Chongqing = Asia/Shanghai
Asia/Chungking = Asia/Shanghai
Asia/Dacca = Asia/Dhaka
Asia/Harbin = Asia/Shanghai
Asia/Istanbul = Europe/Istanbul
Asia/Kashgar = Asia/Urumqi
Asia/Katmandu = Asia/Kathmandu
Asia/Macao = Asia/Macau
Asia/Rangoon = Asia/Yangon
Asia/Saigon = Asia/Ho_Chi_Minh
Asia/Tel_Aviv = Asia/Jerusalem
Asia/Thimbu = Asia/Thimphu
Asia/Ujung_Pandang = Asia/Makassar
Asia/Ulan_Bator = Asia/Ulaanbaatar
Atlantic/Faeroe = Atlantic/Faroe
Atlantic/Jan_Mayen = Europe/Oslo
Australia/ACT = Australia/Sydney
Australia/Canberra = Australia/Sydney
Australia/LHI = Australia/Lord_Howe
Australia/North = Australia/Darwin
Australia/NSW = Australia/Sydney
Australia/Queensland = Australia/Brisbane
Australia/South = Australia/Adelaide
Australia/Tasmania = Australia/Hobart
Australia/Victoria = Australia/Melbourne
Australia/West = Australia/Perth
Australia/Yancowinna = Australia/Broken_Hill
Brazil/Acre = America/Rio_Branco
Brazil/DeNoronha = America/Noronha
Brazil/East = America/Sao_Paulo
Brazil/West = America/Manaus
Canada/Atlantic = America/Halifax
Canada/Central = America/Winnipeg
Canada/Eastern = America/Toronto
Canada/Mountain = America/Edmonton
Canada/Newfoundland = America/St_Johns
Canada/Pacific = America/Vancouver
Canada/Saskatchewan = America/Regina
Canada/Yukon = America/Whitehorse
Chile/Continental = America/Santiago
Chile/EasterIsland = Pacific/Easter
Cuba = America/Havana
Egypt = Africa/Cairo
Eire = Europe/Dublin
Europe/Belfast = Europe/London
Europe/Tiraspol = Europe/Chisinau
GB = Europe/London
GB-Eire = Europe/London
Hongkong = Asia/Hong_Kong
Iceland = Atlantic/Reykjavik
Iran = Asia/Tehran
Israel = Asia/Jerusalem
Jamaica = America/Jamaica
Japan = Asia/Tokyo
Kwajalein = Pacific/Kwajalein
Libya = Africa/Tripoli
Mexico/BajaNorte = America/Tijuana
Mexico/BajaSur = America/Mazatlan
Mexico/General = America/Mexico_City
Navajo = America/Denver
NZ = Pacific/Auckland
NZ-CHAT = Pacific/Chatham
Pacific/Johnston = Pacific/Honolulu
Pacific/Ponape = Pacific/Pohnpei
Pacific/Samoa = Pacific/Pago_Pago
Pacific/Truk = Pacific/Chuuk
Pacific/Yap = Pacific/Chuuk
Poland = Europe/Warsaw
Portugal = Europe/Lisbon
PRC = Asia/Shanghai
ROC = Asia/Taipei
ROK = Asia/Seoul
Singapore = Asia/Singapore
Turkey = Europe/Istanbul
US/Alaska = America/Anchorage
US/Aleutian = America/Adak
US/Arizona = America/Phoenix
US/Central = America/Chicago
US/Eastern = America/New_York
US/East-Indiana = America/Indiana/Indianapolis
US/Hawaii = Pacific/Honolulu
US/Indiana-Starke =America/Indiana/Knox
US/Michigan = America/Detroit
US/Mountain = America/Denver
US/Pacific = America/Los_Angeles
US/Pacific-New = America/Los_Angeles
US/Samoa = Pacific/Pago_Pago
W-SU = Europe/Moscow
Zulu = Etc/UTC
UTC = Etc/UTC
UCT = Etc/UCT
Universal = Etc/UTC
GMT = Etc/GMT
GMT+0 = Etc/GMT
GMT0 = Etc/GMT
GMT−0 = Etc/GMT
Greenwich = Etc/GMT
Etc/Greenwich = Etc/GMT
Etc/Universal = Etc/UTC
Etc/Zulu = Etc/UTC
Etc/GMT0 = Etc/GMT
Etc/GMT-0 = Etc/GMT
Etc/GMT+0 = Etc/GMT
This list might still be incomplete but should help the majority of you. If you found more of the incorrect ones, please comment it down.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With