Simplified users Timezone handling
Max Kanat-Alexander
mkanat at bugzilla.org
Tue Nov 24 09:50:13 UTC 2009
On 11/23/2009 11:19 PM, David Miller wrote:
> 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.
Yeah, but we still need to know the Olson timezone on the server-side
for the various things that can't use JS, like bugmail. We can't just
store the last offset the user had when he logged in, because that
doesn't account for DST changes or the fact that the user might be
traveling.
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
More information about the developers
mailing list