aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-06-24 09:41:37 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-06-24 09:41:37 +0200
commitca5de26bacf6d8a2245a8d916eaa642c3415bd5f (patch)
treeaf21d620178c518fd768c35a03179203087b0c1b
parenta113ee9e9fd07ab10472746ae8fdfeb61c3d7aeb (diff)
downloadnextcloud-server-ca5de26bacf6d8a2245a8d916eaa642c3415bd5f.tar.gz
nextcloud-server-ca5de26bacf6d8a2245a8d916eaa642c3415bd5f.zip
another fix for oc-1044
-rw-r--r--apps/calendar/ajax/event/edit.form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/ajax/event/edit.form.php b/apps/calendar/ajax/event/edit.form.php
index 26a0cc2a60a..86dff7b75a7 100644
--- a/apps/calendar/ajax/event/edit.form.php
+++ b/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);