another fix for oc-1044
This commit is contained in:
parent
a113ee9e9f
commit
ca5de26bac
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue