Closed
Bug 393175
Opened 19 years ago
Closed 19 years ago
TZID parsing of exdate and rdate is failing/missing
Categories
(Calendar :: Import and Export, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: aj.visser, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4pre) Gecko/20070614 Sunbird/0.5
When I create an recurring item in Outlook, let it go through my MAPI iCalendar converter (ical gateway) it creates the iCalendar at the bottom of this message. As you can see, the DTSTART en DTEND are in GMT+1 (Amsterdam) timezone, at 09:00 am and 09:30 am. The exclusiondate (EXDATE) i expect to have the same behavior. If I add the TZID and set the date and time to the last item of the example mentioned below. The RDATE has the same values, except the date is one day later and it has a parameter VALUE=DATE-TIME (which is added by libical). The original item (August 7th at 09:00 is not removed. The new item is shown two hours to late (at 11 o'clock). If I remove the timezone from both times (both times become at 7am), the original item is removed and the exception is shown at 9am, both despite the TZID.
According to me, the problem is: TZID is not parsed, while according to RFC 2445 it should be handled.
For now I make a 'hack' which takes care of this problem. I hope this get fixed soon!
Below the example message.
Regard,
A. J. Visser
Example:
BEGIN:VCALENDAR
PRODID
:-//mozilla.org/Company
VERSION
:2.0
CALSCALE
:GREGORIAN
METHOD
:PUBLISH
BEGIN:VTIMEZONE
TZID
:STD+0100DST+0200
BEGIN:STANDARD
TZOFFSETFROM
:+020000
TZOFFSETTO
:+010000
TZNAME
:STD+0100
DTSTART
:19700101T030000Z
RRULE
:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM
:+010000
TZOFFSETTO
:+020000
TZNAME
:DST+0200
DTSTART
:19700101T020000Z
RRULE
:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER
;CN=AJ
:MAILTO:AJ@localhost
CREATED
:20070822T093643Z
DTSTAMP
:20070822T113720Z
DTSTART
;TZID=STD+0100DST+0200
:20070801T090000Z
DTEND
;TZID=STD+0100DST+0200
:20070801T093000Z
SUMMARY
:EXDATE & RDATE example
PRIORITY
:5
RRULE
:FREQ=DAILY;COUNT=4;INTERVAL=2
EXDATE
;TZID=STD+0100DST+0200
:20070807T090000Z
RDATE
;VALUE=DATE-TIME
;TZID=STD+0100DST+0200
:20070808T090000Z
CLASS
:PUBLIC
UID
:040000008200E00074C5B7101A82E0080000000060C8E9B6B0E4C70100000000000000001000
0000A867424A6D91084AB80F8FC046A0DE44
END:VEVENT
END:VCALENDAR
Reproducible: Always
Steps to Reproduce:
1. Timezone of your computer/sunbird should be GMT +01:00 (Amsterdam)
2. Import the example ics into Subbird
Actual Results:
You WILL see FIVE appointments:
1 - August 1st, 09:00 am
2 - August 3rd, 09:00 am
3 - August 5th, 09:00 am
4 - August 7th, 09:00 am
5 - August 8th, 11:00 am
Expected Results:
You SHOULD see FOUR appointments:
1 - August 1st, 09:00 am
2 - August 3rd, 09:00 am
3 - August 5th, 09:00 am
X 4 - August 7th should not be there anymore
5 - August 8th, 09:00 am (the replacement of August 7th)
Comment 1•19 years ago
|
||
Sorry, I don't exactly understand your problem description. However what is obvious to me is that your data's RDATEs and EXDATEs are in *UTC*, thus please don't expect TZID parameters to be taken into account:
EXDATE
;TZID=STD+0100DST+0200
:20070807T090000Z
RDATE
;VALUE=DATE-TIME
;TZID=STD+0100DST+0200
:20070808T090000Z
I assume this is a bug of your MAPI iCalendar converter (ical gateway).
=> INVALID?
The RDATEs and EXDATEs are not in UTC, but are in local time.
"Description: The parameter MUST be specified on the "DTSTART",
"DTEND", "DUE", "EXDATE" and "RDATE" properties when either a DATE-
TIME or TIME value type is specified and when the value is not either
a UTC or a "floating" time." (http://www.ietf.org/rfc/rfc2445.txt, page 30)
According to this quote, EXDATEs and RDATES may be in UTC OR in local times.
The TZID seems not to be parsed by Sunbird (as far as I can see it).
I think Sunbird automatically sees those times if they were in UTC, while they may be local.
I hope you get a better understanding about this.
If not, please make clear what you don't understand.
Thanks in advance.
Comment 3•19 years ago
|
||
(In reply to comment #2)
> The RDATEs and EXDATEs are not in UTC, but are in local time.
No, this is plain wrong: your EXDATE's and RDATE's value end up 'Z', thus are specified in absolute (UTC) time.
> "Description: The parameter MUST be specified on the "DTSTART",
> "DTEND", "DUE", "EXDATE" and "RDATE" properties when either a DATE-
> TIME or TIME value type is specified and when the value is not either
> a UTC or a "floating" time." (http://www.ietf.org/rfc/rfc2445.txt, page 30)
> According to this quote, EXDATEs and RDATES may be in UTC OR in local times.
It just says TZID must be specified if times are neither floating nor UTC (which your value obviously is). This does not imply that TZID need to be minded if the value is UTC.
> I hope you get a better understanding about this.
> If not, please make clear what you don't understand.
You seem to over interpret the RFC. Please have a look at the revised RFC 2445bis [1] which clarifies exactly that point:
The "TZID" property parameter MUST NOT be applied to DATE
properties, and DATE-TIME or TIME properties whose time values are
specified in UTC.
[1] <http://tools.ietf.org/rfcmarkup?doc=draft-ietf-calsify-rfc2445bis-07#section-3.2.18)>
Thanks for your answer.
It makes it almost clear for me.
Just one question (it may be off-topic)
You say that the 'Z' at the end of a Date-time specifies UTC time.
As you can see in my example, the DTSTART, DTEND both have a TZID but their times are both ending with a 'Z'. Why does Sunbird not handles that as UTC? This appointment is at 09:00 am both in STD as in DST.
I hope you want to enter this. You may then set this bug to Resolved as INVALID.
Again, thanks.
Comment 5•19 years ago
|
||
(In reply to comment #4)
> Just one question (it may be off-topic)
> You say that the 'Z' at the end of a Date-time specifies UTC time.
> As you can see in my example, the DTSTART, DTEND both have a TZID but their
> times are both ending with a 'Z'. Why does Sunbird not handles that as UTC?
> This appointment is at 09:00 am both in STD as in DST.
Good point. We should ignore the TZID param in that case. The current code obviously does not regarding DTSTART, DTEND, DUE, etc. I think this is worth an ENH bug, the fix should be rather easy in
calendar/base/src/calICSService.cpp, calIcalProperty::getDatetime_
checking the icaltimetype itt.is_utc.
But as discussed, adding a TZID for UTC values is illegal, thus this is IMO not a real bug, but we could do better by simply ignoring the TZID in that case.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
OK, thanks for your reply. I suppose you take it over from here.
Thanks again for your reply. It made me happy.
Comment 7•19 years ago
|
||
(In reply to comment #5)
filed follow-up bug 393414 for that enhancement
You need to log in
before you can comment on or make changes to this bug.
Description
•