Opened 17 years ago
Closed 16 years ago
#7221 closed defect (fixed)
Dates are parsed according to user timezone but formated as GMT/UTC
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | i18n | Version: | 0.11rc1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Server is in Athens/Greece Timezone (GMT+2). Client is the same.
When I input a due date in the milestone edit page (admin), the date of the previous day appears in the Milestones admin page. The roadmap page also shows the same date (1 day early), but the tooltip in the "Due in X days shows the corresponding GMT midnight date/time (i.e. I input 15/05/2008, I see 14/05/2008, but the tooltip says "2008-05-14T23:00:00Z+0200 in Timeline").
It seems that dates are parsed according to the user's timezone setting (I've set mine to GMT+2:00), but are always shown as GMT date, even for editing. For example, I repeatedly edit a Milestone simply pressing "Save" on the form and the date keeps going back a day each time.
In my mind, if a user sets his personal timezone, then everything should be formatted for display for that timezone and parsed (as coming) from than timezone.
Attachments (0)
Change History (4)
comment:1 by , 16 years ago
Milestone: | → 0.11 |
---|
comment:2 by , 16 years ago
Component: | general → i18n |
---|---|
Owner: | changed from | to
comment:3 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Sounds like req.tz not being used.
comment:4 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Also, previous update to include in milestone 0.11 was also mine, sorry for the omission. You should really get this checked and fixed soon!
Thanks :)