-
Notifications
You must be signed in to change notification settings - Fork 182
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
Comments
Hi @mleonhard, _timezone = await FlutterNativeTimezone.getLocalTimezone(); # returns "America/Chicago"
|
For newer android is returns things in IANA format using the ZoneID
lookup. The older TimeZone package returns things like CST and PST in some
cases, I think those cases are mostly related to running in an emulator
though, not seen it return those strings in real settings.
…On Thu, 10 Jun 2021 at 08:30, Eric Bartholemy ***@***.***> wrote:
Hi @mleonhard <https://github.com/mleonhard>,
On Android, I have selected Region "United States" and Time zone "Chicago
(GMT-05:00)" in the device settings.
_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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATOMMJ7G6XFUUYVQQTB6QTTSDLAPANCNFSM455IQYGQ>
.
|
@pinkfish So now this package always returns |
The docs for
Future<String> getLocalTimezone()
say only:I need to know if it returns ambiguous time zone abbreviations like "CST" or excellent tz database names like "America/Chicago".
The text was updated successfully, but these errors were encountered: