another fix for oc-1044

This commit is contained in:
Georg Ehrke 2012-06-24 09:41:37 +02:00
parent a113ee9e9f
commit ca5de26bac
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ $dtstart = $vevent->DTSTART;
$dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent); $dtend = OC_Calendar_Object::getDTEndFromVEvent($vevent);
switch($dtstart->getDateType()) { switch($dtstart->getDateType()) {
case Sabre_VObject_Property_DateTime::UTC: case Sabre_VObject_Property_DateTime::UTC:
$timeOffset = OC_Calendar_App::$tz*60; $timeOffset = $_SESSION['timezone']*60;
$newDT = $dtstart->getDateTime(); $newDT = $dtstart->getDateTime();
$newDT->add(new DateInterval("PT" . $timeOffset . "M")); $newDT->add(new DateInterval("PT" . $timeOffset . "M"));
$dtstart->setDateTime($newDT); $dtstart->setDateTime($newDT);