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)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbo, Assigned: dbo)

References

Details

Attachments

(2 files)

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.
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)
Attached patch minor opt for getInTimezone — — Splinter Review
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 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 on attachment 260595 [details] [diff] [review]
forcing default timezone for print formatting

r=lilmatt
Attachment #260595 - Flags: first-review?(lilmatt) → first-review+
Comment on attachment 260865 [details] [diff] [review]
minor opt for getInTimezone

r=mvl
Attachment #260865 - Flags: first-review?(mvl) → first-review+
Whiteboard: [checkin needed after 0.5]
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
Verified in thunderbird build 2007071103, task is fixed.
Status: RESOLVED → VERIFIED
Blocks: 386236
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: