another fix for oc-1044

remotes/origin/stable45
Georg Ehrke 13 years ago
parent a113ee9e9f
commit ca5de26bac
  1. 2
      apps/calendar/ajax/event/edit.form.php

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

Loading…
Cancel
Save