Simplified users Timezone handling

David Miller justdave at bugzilla.org
Tue Nov 24 07:19:42 UTC 2009


Max Kanat-Alexander wrote on 11/23/09 7:37 PM:
> 	Yeah, we'd have to store it on the server still, which would probably
> confuse people. I don't think we can get Olson timezone names (like
> America/Los_Angeles) from JS.

But that's the beauty of it, you wouldn't need to.  All the JS cares is
the local timezone of the browser that's accessing it.  The only reason
the server needs to know is the fallback timezone to use for the
noscript block.  The JS block he gave asks the browser to use its own
timezone in the conversion.

-- 
Dave Miller                                   http://www.justdave.net/
System Administrator, Mozilla Corporation      http://www.mozilla.com/
Project Leader, Bugzilla Bug Tracking System  http://www.bugzilla.org/



More information about the developers mailing list