mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
Fix VTZIMEZONE DTSTART Issue
This commit is contained in:
parent
f6215060f1
commit
9e6d97f106
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user