Skip to content

Provide function to get the current system timezone nameΒ #21758

Open
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


It would be helpful if there was a cross platform way to fetch the iana time zone name for the server where the dart vm is currently running.

On Unix this is stored in /etc/timezone, for example on my computer it is "Pacific/Auckland".

I don't think this is always possible to do this correctly in the browser. Probably best to leave for a library there.

Note: DateTime.now().timeZoneName returns the abbreviated time zone name, which is ambiguous (CST Austrailia, and US), and differs depending on the time of the year. i.e. timeZoneName for me is currently NZDT, but in winter is NZST.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.core-lcustomer-google3library-coretype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions