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

Suggestion for Kiev/Kyiv mapping #190

Open
mpastewski opened this issue Apr 2, 2024 · 1 comment
Open

Suggestion for Kiev/Kyiv mapping #190

mpastewski opened this issue Apr 2, 2024 · 1 comment

Comments

@mpastewski
Copy link

mpastewski commented Apr 2, 2024

Hi,

I want to bring to your attention the confusing, double spelling of the capital of Ukraine (Kiev/Kyiv). It was already mentioned here #145

Please note that developers can use the flutter_timezone library to fetch the device's local timezone. That library returns (at least for Android) "Europe/Kiev". If that value is passed to the timezone library, the user receives the exception:

Unhandled Exception: Location with the name "Europe/Kiev" doesn't exist

That brings developers to handling corner cases in the app code, but that isn't the ideal scenario. I believe it would be great to recognize both spellings and map to the same timezone instead.

Best Regards,
Mateusz

@justerror
Copy link

Hello.

I believe it would be great to recognize both spellings and map to the same timezone instead.

You can use database variant import 'package:timezone/data/latest_all.dart'. It contains deprecated name 'Europe/Kiev'.

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