-
Notifications
You must be signed in to change notification settings - Fork 729
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
setZone('America/New_York') producing 'Invalid DateTime' on ReactNative 0.59 (Android) #541
Comments
That is pretty weird. Unfortunately I have no idea. Can you check |
I'm baffled as well... If I do the following: |
Do you have any settings overrides, particularly |
No settings overrides. |
Ah wait... it seems like there is an additional call in here that is failing: |
So it seems this isn't Luxon's issue, but Intl no longer accepts 'America/New_York' as a valid timezone on the latest upgrade of React-Native. |
Solved by: andyearnshaw/Intl.js#19 |
Thank you @bramski for the thorough investigation! 🥇 |
Version:
1.8.2
ReactNative:
0.59
Platform:
Android
Trying to dig deeper...
The following code:
DateTime.fromISO('2020-09-17T16:00:00-04:00')
returnsInvalid DateTime
. Not sure if something changes in the javascript runtime or something...The text was updated successfully, but these errors were encountered: