Brandon Benvie (2013-07-18T00:00:23.000Z)
domenic at domenicdenicola.com (2013-07-24T00:39:28.820Z)
On 7/17/2013 4:55 PM, Jonas Sicking wrote: > I believe SpiderMonkey in Firefox Desktop until recently would grab > the snapshot of the user's timezone on browser startup, and then never > change it until the browser was shut down. > > Now it seems to update that snapshot now and then in some pattern that > isn't obvious to me. When that happens the timezone offset for *all* > Date instances all change. Oh I see what happened. The time zone reported from getTimezoneOffset wasn't updated until a new Date object is created. So the original one would report the old timezone up until the first time you do `new Date` and then both the old one and the new one are changed.