Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/settings.php')
-rwxr-xr-x[-rw-r--r--]apps/calendar/settings.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/settings.php b/apps/calendar/settings.php
index b5922802716..981df9ffafd 100644..100755
--- a/apps/calendar/settings.php
+++ b/apps/calendar/settings.php
@@ -7,10 +7,10 @@
*/
$tmpl = new OC_Template( 'calendar', 'settings');
-$timezone=OC_Preferences::getValue(OC_User::getUser(),'calendar','timezone','');
+$timezone=OCP\Config::getUserValue(OCP\USER::getUser(),'calendar','timezone','');
$tmpl->assign('timezone',$timezone);
$tmpl->assign('timezones',DateTimeZone::listIdentifiers());
-OC_Util::addScript('calendar','settings');
+OCP\Util::addscript('calendar','settings');
return $tmpl->fetchPage();