summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/event/new.form.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/ajax/event/new.form.php')
-rw-r--r--apps/calendar/ajax/event/new.form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/ajax/event/new.form.php b/apps/calendar/ajax/event/new.form.php
index 0b19e7e92f9..db04cdf2d49 100644
--- a/apps/calendar/ajax/event/new.form.php
+++ b/apps/calendar/ajax/event/new.form.php
@@ -27,7 +27,7 @@ if (!$end){
}
$start = new DateTime('@'.$start);
$end = new DateTime('@'.$end);
-$timezone = OCP\Config::getUserValue(OCP\USER::getUser(), 'calendar', 'timezone', date_default_timezone_get());
+$timezone = OC_Calendar_App::getTimezone();
$start->setTimezone(new DateTimeZone($timezone));
$end->setTimezone(new DateTimeZone($timezone));