mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

incorrect timezone abbreviations #173

Closed will87 closed 4 years ago

will87 commented 9 years ago

Hi, I've noticed that for some timezones eg. Africa/Tunis and Indian/Mauritius, the abbreviations retrieved with getTimezoneAbbreviation aren't correct, there seems to be a function (getAbbreviation) in date.js that adds an 'S' to the abbreviation from the Olson files so CET becomes CEST and MUT becomes MUST, making these abbreviations incorrect for these timezones, what is the reason for this?

mde commented 9 years ago

Ugh, this is probably something very stupid like looking for a "D" as in 'daylight,' and inserting "S" if it doesn't find it.

mde commented 4 years ago

This library is no longer maintained, and this repo is here only for historical interest.