Skip to content
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

[iOS] Missing timezone ? #175

Open
matureck opened this issue Jun 30, 2023 · 1 comment
Open

[iOS] Missing timezone ? #175

matureck opened this issue Jun 30, 2023 · 1 comment

Comments

@matureck
Copy link

I was try few things with the package (on an Iphone device) with which a faced an issue that is a bit annoying.
In iOS 16.1.1 settings (General > Date & Time > Time Zone) I've founded this Tz : Australia/Canberra, tried it and as soon as I use the package, my App simply crash.

After verification, the v0.9.0 of the package is based on IANA 2022c where I couldn't find such a Tz.

Do someone know if this issue came from the package, IANA db or iOS Tz list ?

Or even a solution to this problem, by the way I didn't checked if any other Tz in iOS settings make the package crash.

@thumbert
Copy link

thumbert commented Jul 8, 2023

If you take a look at
https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
it looks like Australia/Canberra is linked to Australia/Sydney. That's probably why getLocation('Australia/Canberra') throws. You will need to wrap it into a try/catch and direct the user to choose another location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants