summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/settings/guesstimezone.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/ajax/settings/guesstimezone.php')
-rwxr-xr-x[-rw-r--r--]apps/calendar/ajax/settings/guesstimezone.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/calendar/ajax/settings/guesstimezone.php b/apps/calendar/ajax/settings/guesstimezone.php
index c0b4ef65263..9b86c305e44 100644..100755
--- a/apps/calendar/ajax/settings/guesstimezone.php
+++ b/apps/calendar/ajax/settings/guesstimezone.php
@@ -17,11 +17,11 @@ $lng = $_GET['long'];
$timezone = OC_Geo::timezone($lat, $lng);
-if($timezone == OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezone')){
+if($timezone == OC_Preferences::getValue(OCP\USER::getUser(), 'calendar', 'timezone')){
OC_JSON::success();
exit;
}
-OC_Preferences::setValue(OC_USER::getUser(), 'calendar', 'timezone', $timezone);
+OC_Preferences::setValue(OCP\USER::getUser(), 'calendar', 'timezone', $timezone);
$message = array('message'=> $l->t('New Timezone:') . $timezone);
OC_JSON::success($message);
?> \ No newline at end of file