Skip to content
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

Bug fix: support more timezones #74

Merged
merged 2 commits into from
Nov 25, 2020
Merged

Conversation

margaree
Copy link
Contributor

Timezones source of truth is now this list https://www.timeanddate.com/time/zones/. I added and corrected where needed and added support for duplicates, which was where we had problems with Halifax.

Copy link
Member

@dlockhart dlockhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's so crazy that there's ambiguity in the abbreviation... like they couldn't just come up with unique abbreviations?! Seems like an opportunity to standardize.

else if (longTimezone.includes('America')) return '-0600';
else return '+0800';
case 'GST':
// South Georgia and the South Sandwich Islands Time -0200 (Atlantic)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm totally going to the South Sandwich Islands when this pandemic is over. 🇬🇸

lib/dateTime.js Show resolved Hide resolved
lib/dateTime.js Show resolved Hide resolved
lib/dateTime.js Show resolved Hide resolved
@margaree margaree merged commit 418cc03 into master Nov 25, 2020
@margaree margaree deleted the timezones-support-duplicates branch November 25, 2020 12:45
@ghost
Copy link

ghost commented Nov 25, 2020

🎉 This PR is included in version 3.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants