Fix VTZIMEZONE DTSTART Issue

This commit is contained in:
Jörg Lehrke 2009-11-19 07:52:42 +00:00
parent f6215060f1
commit 9e6d97f106

View File

@ -245,6 +245,13 @@ class calendar_ical extends calendar_boupdate
// --> we have to parse it and let Horde_iCalendar add it again
$horde_vtimezone = Horde_iCalendar::newComponent('VTIMEZONE',$container=false);
$horde_vtimezone->parsevCalendar($vtimezone,'VTIMEZONE');
// DTSTART must be in local time!
$standard = $horde_vtimezone->findComponent('STANDARD');
$dtstart = $standard->getAttribute('DTSTART');
$standard->setAttribute('DTSTART', date('Ymd\THis', $dtstart), array(), false);
$daylight = $horde_vtimezone->findComponent('DAYLIGHT');
$dtstart = $daylight->getAttribute('DTSTART');
$daylight->setAttribute('DTSTART', date('Ymd\THis', $dtstart), array(), false);
$vcal->addComponent($horde_vtimezone);
$vtimezones_added[] = $tzid;
}