Closed
Bug 376496
Opened 17 years ago
Closed 17 years ago
Formatting is bogus when start and end time don't belong to the same timezone
Categories
(Calendar :: Printing, defect)
Calendar
Printing
Tracking
(Not tracked)
VERIFIED
FIXED
0.7
People
(Reporter: dbo, Assigned: dbo)
References
Details
Attachments
(2 files)
6.67 KB,
patch
|
mattwillis
:
first-review+
|
Details | Diff | Splinter Review |
1.38 KB,
patch
|
mvl
:
first-review+
|
Details | Diff | Splinter Review |
The print formatter code assumes that all passed in events with all its start and end times relate to the same timezone which need not be the case. E.g. regarding WCAP, endDate are sometimes returned in UTC by the server while the startDate has a specific timezone set.
Assignee | ||
Comment 1•17 years ago
|
||
proposal patch: - making sure that the print formatters stick to the default timezone - making sure that the date formatter uses the same timezone for start/end for intervals BTW: The late-init code in calUtils.js: calendarDefaultTimezone won't reflect changes to the pref, so I think we should install a pref listener for gDefaultTimezone.
Assignee: nobody → daniel.boelzle
Status: NEW → ASSIGNED
Attachment #260595 -
Flags: first-review?(lilmatt)
Assignee | ||
Comment 2•17 years ago
|
||
Since getInTimezone is called lots of times and the timezone is most often the same, those calls are most often only cloning the datetime object. Thus I am proposing this little optimization.
Attachment #260865 -
Flags: first-review?(lilmatt)
Comment 3•17 years ago
|
||
Comment on attachment 260865 [details] [diff] [review] minor opt for getInTimezone This looks okay to me, but I'd rather have mvl or ctalbert take a look. They're more familiar with this file.
Attachment #260865 -
Flags: first-review?(lilmatt) → first-review?(mvl)
Comment 4•17 years ago
|
||
Comment on attachment 260595 [details] [diff] [review] forcing default timezone for print formatting r=lilmatt
Attachment #260595 -
Flags: first-review?(lilmatt) → first-review+
Comment 5•17 years ago
|
||
Comment on attachment 260865 [details] [diff] [review] minor opt for getInTimezone r=mvl
Attachment #260865 -
Flags: first-review?(mvl) → first-review+
Updated•17 years ago
|
Whiteboard: [checkin needed after 0.5]
Assignee | ||
Comment 6•17 years ago
|
||
Checked in on HEAD and MOZILLA_1_8_BRANCH.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed after 0.5]
Target Milestone: --- → 0.7
Comment 7•17 years ago
|
||
Verified in thunderbird build 2007071103, task is fixed.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•