-
Notifications
You must be signed in to change notification settings - Fork 833
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
guess returns obsolete timezones (likely due to Intl) #873
Comments
I think this is actually related to this issue: #687 On the latest Mac OSX you can set your timezone and it looks like legacy timezones are sometimes used, such as
I imagine that the only workaround is to check if a legacy timezone is an alias of another timezone (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#Legend) and then return the correct timezone. |
@trevorgehman well, there are 2 parts in this, if guess indeed uses Could you modify the |
America/Indianapolis
instead of America/Indiana/Indianapolis
This is still a problem. It's definitely not Moment, because I'm using this:
I've got a Ruby on Rails backend that is expecting |
I'm running into a situation where
moment.tz.guess()
is returning the obsolete timezoneAmerica/Indianapolis
instead of the correctAmerica/Indiana/Indianapolis
. I'm not familiar enough with the intricacies of how this library is processing the IANA data, but I just wanted to post this issue in case others are running into it.Not sure whether it's related to this (#835) which specifically mentions the
America/Indiana/Indianapolis
timezone.The text was updated successfully, but these errors were encountered: