#45 Fixed time zone expansion when the DTSTART doesn't match the

closed-accepted
nobody
None
5
2013-02-23
2013-02-23
Kent
No

Here's a time zone that begins this year. Oddly, the RRULE and DTSTART don't match. For example, the 3rd Saturday in October 2013 is actually the 19th, not the 20th. This causes libical to skip 2013 and start the time zone change expansion in 2014. The result is events in 2013 appear at the wrong time. This is a real live VTIMEZONE from Outlook.

The attached patch will force the time zone's DTSTART to get added to the changes array.

BEGIN:VTIMEZONE
TZID:Brasilia
X-ENTOURAGE-TZID:58
X-ENTOURAGE-CFTIMEZONE:America/Sao_Paulo
BEGIN:DAYLIGHT
TZNAME:Daylight
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=3SA;BYMONTH=10
TZOFFSETFROM:-0300
TZOFFSETTO:-0200
DTSTART:20131020T000000
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:Standard
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=3SA;BYMONTH=2
TZOFFSETFROM:-0200
TZOFFSETTO:-0300
DTSTART:20130217T000000
END:STANDARD
END:VTIMEZONE

Discussion

  • Kent
    Kent
    2013-02-23

     
    Attachments
  • Allen Winter
    Allen Winter
    2013-02-23

    Thanks Kent.
    committed in r1148

     
  • Allen Winter
    Allen Winter
    2013-02-23

    • status: open --> closed-accepted