Closed Bug 384700 Opened 18 years ago Closed 18 years ago

RDATE/EXDATE specified timezones get lost during ICS roundtrip

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbo, Assigned: dbo)

Details

Attachments

(2 files)

When specifying a TZID for RDATE/EXDATE properties, those get lost when writing ics.
Attached patch fixSplinter Review
- taking bug - fixing bug - streamlining the bloody AddtimeZoneReference thing, adding a calIIcalProperty::valueAsDatetime attribute, which used by calRecurrenceDate - some const correctness fixes
Assignee: nobody → daniel.boelzle
Status: NEW → ASSIGNED
Attachment #268614 - Flags: review?(mvl)
Flags: blocking-calendar0.7+
Comment on attachment 268614 [details] [diff] [review] fix Since mvl doesn't have any time left, shifting review to Clint. We should clarify if it is mandatory to preserve the TZID at all (which is handled by the patch). An alternative would be to convert RDATE/EXDATEs to UTC upon reading; writing is in UTC which IMO doesn't hurt. The only drawback is that UI (namely the recurrence dialog) should present EXDATEs in a sensible timezone, thus needs to convert.
Attachment #268614 - Flags: review?(mvl) → review?(ctalbert)
How to verify: 1. Subscribe to the attached ics file. 2. Modify the ics file, e.g. create a new event. => The ics file won't contain the VTIMEZONE for Europe/Paris anymore, thus the RDATE has a dangling TZID.
Summary: RDATE/EXDATE's TZID gets lost → RDATE/EXDATE specified timezones get lost during ICS roundtrip
Comment on attachment 268614 [details] [diff] [review] fix >Index: public/calIICSService.idl >=================================================================== >+ /** >+ * The value of the property as date/datetime value, keeping >+ * track of the used timezone being resolvable and referenced in the >+ * owning component. >+ * XXX todo: or add [noscript, notxpcom] getter/setter? >+ */ >+ attribute calIDateTime valueAsDatetime; I don't see the need for [noscript, notxpcom] here. Please explain and/or add a follow-on bug for it. Otherwise, looks OK.
Attachment #268614 - Flags: review?(ctalbert) → review+
Checked in on HEAD and MOZILLA_1_8_BRANCH.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.7
Verified in nightly build 20070821, task is fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: