Opened 17 years ago
Closed 17 years ago
#6635 closed defect (fixed)
/prefs/datetime should default to server TZ
Reported by: | Owned by: | Jeroen Ruigrok van der Werven | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | i18n | Version: | 0.11b1 |
Severity: | normal | Keywords: | timezone |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
On a trac 0.11b1 setup with pytz installed, when a user goes to set their TZ preferences for the first time (at prefs/datetime), they are confronted with a default choice of Asia/Qatar.
It would be more reasonable if they were given a default choice that matched the server's default time zone.
Attachments (1)
Change History (8)
comment:1 by , 17 years ago
by , 17 years ago
Attachment: | 6635-fix.diff added |
---|
Fix to default users to server local time zone if they have no time zone set.
comment:2 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 17 years ago
I've applied this patch and it seems to work.
But when the user clicks "Save changes" with the setting unchanged ("Default time zone" chosen), it goes right back to Asia/Seoul again.
comment:5 by , 17 years ago
Component: | general → i18n |
---|
comment:7 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r6689 with a slightly altered patch and another fix to Trac.
Probably even simpler to implement: the user could be given an explicit "Server Default" choice which would remove the matching
name=tz
row in thesession_attribute
table.