-
Notifications
You must be signed in to change notification settings - Fork 110
Invalid ios Timezone: US/Pacific #94
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
Comments
Thank you for the report! I was able to reproduce your issue by running Clock.System.now().toLocalDateTime(TimeZone.of("US/Pacific")) in the iOS simulator on 0.1.1. However, in the current |
Out of interest: What exatly do you mean by |
Yep, Though the message is different, this must be the same problem as what you've reported initially, yes. Does the crash occur on the |
Uhh... I managed to find the root cause. If we open the Swift console and look at the output of
(emphasis mine). Evidently, the documentation is misleading: the system does know about some other time zones, as can be seen by explicitly calling The implementation of Darwin integration that is currently in So, the workaround is to use a time zone from the list of names available in |
Amusingly, even though there is no
|
This doesn't reproduce for me on 0.2.0, so closing the issue. |
We are seeing a crash on iOS where an old timezone,
US/Pacific
is declared.I don't fully understand what's happening here. Our iOS developers say that it's related to this issue:
https://stackoverflow.com/questions/19819268/convert-ios-localtimezone-to-a-knowntimezone
The iOS stacktraces aren't present for release frameworks but I think it boils down to this line of code:
The issue occurs on kotlinx-datetime
0.1.1
.Its happening throughout all ios versions.
The text was updated successfully, but these errors were encountered: