Simplified users Timezone handling
David Miller
justdave at bugzilla.org
Tue Nov 24 20:52:16 UTC 2009
Max Kanat-Alexander wrote on 11/24/09 7:04 AM:
> On 11/24/2009 03:41 AM, David Balažic wrote:
>> About storing the timezone in users preferences for other purposes, I saw on
>> some web forums, that the user registration page uses JS to autodetect
>> the timezone (but the user can still change it, it is a regular drop down list,
>> it is just initialized by JS).
>
> Yeah, that's kind of what I was saying--I don't know how to reliably
> translate the JS timezone into an Olson timezone.
Include the TZ offset in the dropdown select in parentheses after the TZ
name. Sort the select box by the TZ offset. Autoselect the first one
that matches. Let the user change it to one of the ones right after if
it was the wrong one.
--
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