On Wed, 2010-04-21 at 09:39 +0200, Patrick Ohly wrote:
> I have a meeting in my Evolution calendar which I synchronize with
> SyncEvolution. I noticed that the outgoing VEVENT has start and end
> time
> converted to UTC times which are one hour off.
> 
> Here's the stripped down event:
> 
> BEGIN:VCALENDAR
> PRODID:-//Ximian//NONSGML Evolution Calendar//EN
> VERSION:2.0
> METHOD:PUBLISH
> BEGIN:VTIMEZONE
> TZID:GMT Standard Time
> BEGIN:STANDARD
> DTSTART:16010101T020000
> TZOFFSETFROM:+0100
> TZOFFSETTO:+0000
> RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
> END:STANDARD
> BEGIN:DAYLIGHT
> DTSTART:16010101T010000
> TZOFFSETFROM:+0000
> TZOFFSETTO:+0100
> RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
> END:DAYLIGHT
> END:VTIMEZONE
> BEGIN:VEVENT
> SUMMARY:test event
> DTSTART;TZID=GMT Standard Time:20100421T150000
> DTEND;TZID=GMT Standard Time:20100421T160000
> UID:040000008200E00074C5B7101A82E0080000000000B5A586D0A4CA01000000000000000010
> CLASS:PUBLIC
> PRIORITY:5
> DTSTAMP:20100415T035521Z
> TRANSP:OPAQUE
> STATUS:CONFIRMED
> SEQUENCE:4
> END:VEVENT
> END:VCALENDAR

This fails because RRULE2toInternal() in rrule.cpp fails to convert the
RRULE properties into the internal format. It bombs out here:

  switch (freq)
  {
...
    case 'Y' :
      if (byday == "" ||
         (byday.length() == 2 && byday[0] ==
RRULE_weekdays[startwday][0] &&
                                 byday[1] ==
RRULE_weekdays[startwday][1]))
      {
...
      }
      else
      {
        goto incompat;
      }

It reaches the "goto incompat" because byday == "-1SU".

Recurrence rules with "last day in month ..." are common for VTIMEZONEs.
Beat, is that really something that is not handled by the Synthesis code
at the moment? What would be necessary to add support for it?

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to