timezones.json icon indicating copy to clipboard operation
timezones.json copied to clipboard

duplicate abbr

Open kapilpipaliya opened this issue 5 years ago • 4 comments

"ADT", "AST", "BST", "CAST", "CDT", "CEDT", "CST", "EAST", "GDT", "JST", "KST", "MDT", "MST", "NST", "PDT", "SAST", "TST", "U", "VST", "WAST"

kapilpipaliya avatar Mar 16 '20 10:03 kapilpipaliya

What's duplicated?

joezhouhpe avatar Feb 23 '21 05:02 joezhouhpe

Yes, there are duplicate abbr's in multiple objects. Go to timezones.json and ctrl+f CDT, there are two objects containing same abbr values and same for others too.

CodersGas avatar Mar 08 '21 06:03 CodersGas

Some of these are related to the offsets being wrong in the other bug where the offsets are wrong, because the file was generated using the state of things while DST/Summer Hours was on in the Northern Hemisphere.

E.g., MDT - 2 of those are "MDT" for "Mountain Daylight Time" (1 for the US/Canada, 1 for Mexico which kept the pre-2005 dates that Europe is generally also using). Both should have been MST.

The abbreviation duplicates in general, I'm not sure if they can be resolved. Both are Mountain Standard Time in the winter, Mountain Daylight Time in the summer, but on different dates. "Complicated" :)

acroyear avatar May 01 '21 17:05 acroyear

Oh! These timezone things have always been complex. I resolved the duplication issue, by creating a single object for all duplicate abbreviation. In short, I edited the JSON. If you need that , let me know... :-)

CodersGas avatar May 02 '21 04:05 CodersGas