exposing system time zone
Mark S. Miller
erights at google.com
Tue Jun 17 19:24:21 PDT 2014
Even if the OS doesn't provide notifications, the implementation could poll
in order to synthesize notifications. Given that the issue is time zone
changes, the polling interval could be rather large without complaint,
except from astronauts and east/west hyperloop travelers ;).
On Tue, Jun 17, 2014 at 7:16 PM, Norbert Lindenberg <
ecmascript at lindenbergsoftware.com> wrote:
>
> On Jun 17, 2014, at 17:28 , David Herman <dherman at mozilla.com> wrote:
>
> > This was brought up on specifiction:
> >
> > http://discourse.specifiction.org/t/navigator-timezone/152
> >
> > Does anyone know why it was left out of the first version of the Intl
> API? Just for lack of time? Is it planned for the next edition? Are there
> tricky issues around standardizing IANA time zones, or around
> incompatibilities between different OSes?
>
> At the time we decided on the feature set for the first edition, Windows
> and IE did not support the IANA time zones. Microsoft agreed to support
> them for the second edition, and they are in the draft for that edition:
> http://norbertlindenberg.com/ecmascript/intl.html#sec-6.4
>
> > Interesting questions in that thread about what to do about time zone
> changes. An event for time zone changes seems important, but we don't
> currently have any precedent for standard library events in ECMAScript.
> Maybe that remains the purview of web APIs. But if we do expose the TZ via
> a standard API, it should have some way of dynamically querying the current
> TZ rather than just fixing the time zone at some random point in time.
>
> We haven’t discussed how to handle time zone changes, and I don’t know
> whether all operating systems now provide notifications when the user
> changes the time zone. It seems this would also be an issue for the
> existing Date methods that use the local time zone.
>
> Norbert
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
--
Cheers,
--MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140617/7ed405df/attachment.html>
More information about the es-discuss
mailing list