You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a situation where moment.tz.guess() is returning the obsolete timezone America/Indianapolis instead of the correct America/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:
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 America/Montreal and America/Indianapolis. Then in Safari and Chrome that is what is returned:
@trevorgehman well, there are 2 parts in this, if guess indeed uses Intl in your case, then it is "not our problem". Maybe it could make sense to add an API/option to only do the manual guessing and not rely on broken Intl implementation, that would be more configurable.
Could you modify the rebuildGuess function to not use Intl and see if the problem persists?
ichernev
changed the title
guess() returns America/Indianapolis instead of America/Indiana/Indianapolis
guess returns obsolete timezones (likely due to Intl)
Aug 26, 2022
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: