4 ms·
Since this requires state to track should be up to the developer to define how they want to track and respond to changes in timezone? I'm not sure I would want
by crowcroft 2y ago
Since this requires state to track should be up to the developer to define how they want to track and respond to changes in timezone? I'm not sure I would want Temporal to have an opinion on how to handle that?
- TheAceOfHearts 2y agoI would expect a timezonechange event to get emitted on the window and that the developer would be responsible for handling it accordingly. This wouldn't require any changes to Temporal.
- crowcroft 2y agoRight, like the browser/app environment would be responsible for it, and then devs can hook into that if they want to handle it or not?
- TheAceOfHearts 2y agoTo be clear, the operating system is responsible for keeping track of timezone changes. Every major OS has a way for applications to be notified when the timezone changes. The major browsers are already hooked into these notifications, so what I'm suggesting is that when that event is received by the browser they should also emit a "timezonechange" event on the window. Any further handling is up to the developer.