[Kolab-devel] Possible bug in generated calendar invitations

Thomas Brüderli bruederli at kolabsys.com
Thu Jun 4 16:57:43 CEST 2015


Hello Steve

Thanks for reporting this! I just copied your report + patch into a
ticket in Phabricator: https://git.kolab.org/T428

While your patch works, the even "better" fix for this issue would be to
use sprintf('%+03d%02d', ...);

Kind regards,
Thomas


Steve Teti wrote:
> 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
> 
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel


More information about the devel mailing list