don't change events timezone and remove the DTSTART value tag

This commit is contained in:
Georg Ehrke 2012-06-04 12:28:05 +02:00
parent a6e3739671
commit 6560f1d894
1 changed files with 3 additions and 5 deletions

View File

@ -43,14 +43,12 @@ class OC_Calendar_Export{
$dtend = OC_Calendar_Object::getDTEndFromVEvent($object->VEVENT);
$end_dt = $dtend->getDateTime();
if($dtstart->getDateType() !== Sabre_VObject_Element_DateTime::DATE){
$start_dt->setTimezone(new DateTimeZone('UTC'));
$end_dt->setTimezone(new DateTimeZone('UTC'));
$object->VEVENT->setDateTime('DTSTART', $start_dt, Sabre_VObject_Property_DateTime::UTC);
$object->VEVENT->setDateTime('DTEND', $end_dt, Sabre_VObject_Property_DateTime::UTC);
$object->VEVENT->DTSTART->offsetUnset('VALUE');
$object->VEVENT->DTEND->offsetUnset('VALUE');
}
$return .= $object->VEVENT->serialize();
}
$return .= "END:VCALENDAR";
return $return;
}
}
}