[Kolab-devel] Possible bug in generated calendar invitations
Steve Teti
steti at monmouth.com
Wed Jun 3 18:13:16 CEST 2015
Hello,
I think there's a problem with invalid timezone information (VTIMEZONE)
in event invitations - specifically with the TZOFFSETFROM and TZOFFSETTO
for timezones with negative UTC offsets. When I create a new calendar
event, the VTIMEZONE data in the generated invitation looks like this:
BEGIN:VTIMEZONE
TZID:America/New_York
X-MICROSOFT-CDO-TZID:10
BEGIN:STANDARD
DTSTART:20141102T060000
TZOFFSETFROM:-400
TZOFFSETTO:-500
TZNAME:EST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20150308T070000
TZOFFSETFROM:-500
TZOFFSETTO:-400
TZNAME:EDT
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:20151101T060000
TZOFFSETFROM:-400
TZOFFSETTO:-500
TZNAME:EST
END:STANDARD
END:VTIMEZONE
Note specifically that the TZOFFSETFROM and TZOFFSETTO are formatted
without a leading zero. This problem does not exist for timezones with
a positive UTC offset - it only manifests for those with a negative
offset. Some clients, such as Lightning and Outlook, seem to handle
this OK. Other clients (Gmail was the one I found the issue on) do not
recognize the event invitation at all. The validator at
http://severinghaus.org/projects/icv/ throws an error stating "Invalid
UTC offset [-400] - must be of the form: (+/-)HHMM[SS]".
I have attached a patch for libcalendaring that fixes this issue in my
deployment.
Thanks,
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-diff
Size: 1229 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20150603/93652e68/attachment.bin>
More information about the devel
mailing list