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

Document strings returned by getLocalTimezone() #26

Open
mleonhard opened this issue Jun 1, 2021 · 3 comments
Open

Document strings returned by getLocalTimezone() #26

mleonhard opened this issue Jun 1, 2021 · 3 comments

Comments

@mleonhard
Copy link

The docs for Future<String> getLocalTimezone() say only:

Returns local timezone from the native layer.

I need to know if it returns ambiguous time zone abbreviations like "CST" or excellent tz database names like "America/Chicago".

@thnukid
Copy link

thnukid commented Jun 10, 2021

Hi @mleonhard,
On Android, I have selected Region "United States" and Time zone "Chicago (GMT-05:00)" in the device settings on the emulator.

_timezone = await FlutterNativeTimezone.getLocalTimezone(); # returns "America/Chicago"

I need to know if it returns ambiguous time zone abbreviations like "CST" or excellent tz database names like "America/Chicago".
To answer your question, the library returns excellent tz database names.

@pinkfish
Copy link
Owner

pinkfish commented Jun 10, 2021 via email

@tamoyal
Copy link

tamoyal commented Aug 17, 2021

@pinkfish So now this package always returns IANA format? Agree it would be great to document this.

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

4 participants