← Back to release summary

Add timezonechange event to Window and WorkerGlobalScope

Category
Device
Type
New or changed feature
Status
In development (Chrome In development)
Intent stage
Start prototyping

WPT details: To be decided

Summary

Adds a timezonechange event and ontimezonechange event handler to Window and WorkerGlobalScope.

Motivation

The current timezone is visible to JavaScript and changes over time. Changes may be useful to note, for example, 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 has to poll, for example, by repeatedly call Intl.DateTimeFormat().resolvedOptions().timeZone.

Standards & signals

Ecosystem

Docs: https://docs.google.com/document/d/1gu-HAVIjVxfPQEE0uQg9Y4tJwYl33Y54DKTA9hfDyic/edit#

Explainers: https://github.com/whatwg/html/pull/3047

View on chromestatus.com