]> source.dussan.org Git - nextcloud-server.git/commitdiff
another fix for oc-1044
authorGeorg Ehrke <dev@georgswebsite.de>
Sun, 24 Jun 2012 07:41:37 +0000 (09:41 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sun, 24 Jun 2012 07:42:14 +0000 (09:42 +0200)
apps/calendar/ajax/event/edit.form.php

index 0193987889367e041c6506af367131d4fd225943..e5cf573c71830577fde0a750d23ce050599bee81 100644 (file)
@@ -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);