IssueRaiser

Provide function to get the current system timezone name

_This issue was originally filed by greg...@gmail.com_ --- 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.

Posted by DartBot on Dec 1, 2014, 8:29 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.9,000 issues0 comments

github (Sysadmin)

Provide function to get the current system timezone name

DartBotDec 1, 2014, 8:29 AM

_This issue was originally filed by greg...@gmail.com_ --- 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.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue