Add a timezonechange event and ontimezonechange event handler to Window/WorkerGlobalScope. The current timezone is visible to JavaScript and changes over time. Changes may be useful to note, e.g., in a long-running calendar or mail application that may want to update dates and times without refreshing when the user resumes using the application after travel. Currently, to accomplish that, a webapp would have to poll, e.g., by repeatedly calling Intl.DateTimeFormat().resolvedOptions().timeZone.Lack of negative signals from other browser vendors Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signals
Yes No To be decided
https://www.chromestatus.com/feature/5766713599590400This intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOcELL8Z0spwW6X8Js1smNwPHb0yXDq-XvAqdK7g6VkEp5NMPg%40mail.gmail.com.
On Wed, Jan 8, 2020 at 12:28 AM Frank Tang <ft...@chromium.org> wrote:Have you filed for a TAG review?Add a timezonechange event and ontimezonechange event handler to Window/WorkerGlobalScope. The current timezone is visible to JavaScript and changes over time. Changes may be useful to note, e.g., in a long-running calendar or mail application that may want to update dates and times without refreshing when the user resumes using the application after travel. Currently, to accomplish that, a webapp would have to poll, e.g., by repeatedly calling Intl.DateTimeFormat().resolvedOptions().timeZone.Lack of negative signals from other browser vendors Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signalsCan you reach out to other vendors and partners to get some signals on this?
e.g. as far as partners go, I can see calendar apps interested in using this
On Wed, Jan 8, 2020 at 8:11 AM Yoav Weiss <yo...@yoav.ws> wrote:On Wed, Jan 8, 2020 at 12:28 AM Frank Tang <ft...@chromium.org> wrote:Have you filed for a TAG review?Add a timezonechange event and ontimezonechange event handler to Window/WorkerGlobalScope. The current timezone is visible to JavaScript and changes over time. Changes may be useful to note, e.g., in a long-running calendar or mail application that may want to update dates and times without refreshing when the user resumes using the application after travel. Currently, to accomplish that, a webapp would have to poll, e.g., by repeatedly calling Intl.DateTimeFormat().resolvedOptions().timeZone.Lack of negative signals from other browser vendors Firefox: No public signals Edge: No public signals Safari: No public signals Web developers: No signalsCan you reach out to other vendors and partners to get some signals on this?The relevant spec PR has positive signals from browser vendors:
Firefox: the helpful involvement by both annevk@ and chrisdavidmills@ implies Mozilla's support. I've filed https://github.com/mozilla/standards-positions/issues/241 asking for explicit confirmation.
Additionally, the W3C I18N WG expressed support: https://github.com/whatwg/html/pull/3047#issuecomment-432107919
Have you filed for a TAG review?
I would recommend against shipping this event until we come to a conclusion on this question which has been discussed in a standards context
On Wed, Jan 8, 2020 at 8:11 AM Yoav Weiss <yo...@yoav.ws> wrote:Have you filed for a TAG review?We have not filed a TAG review yet. This proposal was stalled for a while due to lack of implementer interest; now's probably a good time to file if such interest exists, but one open issue is holding the project up a bit.There was one open specification question: whether the timezone update should be delayed until the event is about to fire. Delaying the update seems most consistent with how events work in general,
and I imagine could be useful to maintain application consistency but I wasn't sure if this would be implementable or useful in practice. For example, if the update is delayed, it is probably impossible to use underlying system APIs to do timezone calculations with this change, as Chrome did until recently, and some browsers still might do. If I were to just choose an answer at this point, I would probably choose to delay the tz update, as most people in the thread preferred, though Frank voiced some concerns about this and said he's planning on investigating further.I would recommend against shipping this event until we come to a conclusion on this question which has been discussed in a standards context. I was planning on waiting to draft the final spec text and request the TAG review until after we had an answer. Please let me know if you want me to file a request sooner, explaining it as an open question, or to just choose an answer to this question in the PR and file a TAG review based on that.Thanks,Dan
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKtSNYN%2BBpPkDyH%3DBXqA3xEHxM6BywJrjo1won2QicXi3%3DsYfQ%40mail.gmail.com.