-
Notifications
You must be signed in to change notification settings - Fork 120
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
utcToZonedTime returns wrong value for Android #179
Comments
Please see if the info in #59 solves your issue and if so perhaps consider contributing it to the readme since it seems to be a recurring problem. You could also try a polyfill for Intl on Android: https://formatjs.io/docs/polyfills |
Thanks for the response. |
That is unfortunate. Still, this does seem like an "Inlt doesn't work on Android" problem rather than a problem with |
@Gabi1M have you managed to get |
I've added a note to the readme on usage with Android. Closing this until there is |
Hermes has support for |
Hi all,
I'm trying to parse an ISO 8601 string to zoned date time, but on android it returns a wrong value. On iOS it works just fine.
The string I'm trying to parse is
2022-04-19T19:00:00+05:00
.I'm using the following versions:
2.28.0
1.1.2
The code I'm testing with is:
My local timezone is:
Europe/Bucharest
GMT+2/GMT+3 DSTTIME_ZONE is:
Asia/Karachi
GMT + 5The output is as follows:
iOS
Date to parse: 2022-04-19T19:00:00+05:00
Parsed: 19 April 2022 17:00 GMT+3
Zoned: 19 April 2022 19:00 GMT+3
Android
Date to parse: 2022-04-19T19:00:00+05:00
Parsed: 19 April 2022 17:00 '
Zoned: 19 April 2022 07:00 '
Instead of outputing 19 for the hour, it outputs 07, regardless of
HH
being specified in the format string. This interferes with date calculations in our app and is producing different behaviours on iOS and Android.I have tried on multiple android versions, on both real devices and emulator, and the result is consistent on all of them.
The text was updated successfully, but these errors were encountered: