aboutsummaryrefslogtreecommitdiffstats
path: root/apps/tasks/ajax/addtask.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-04 20:20:37 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-04 20:20:37 +0200
commit19d2b94837f19539c994157150f3f231f840d3f1 (patch)
tree56c66a44417e86e79d25dc62196fcc6fb33f00a9 /apps/tasks/ajax/addtask.php
parenteae21f32699ed01dd632d28c4ca7ff497c713a1f (diff)
downloadnextcloud-server-19d2b94837f19539c994157150f3f231f840d3f1.tar.gz
nextcloud-server-19d2b94837f19539c994157150f3f231f840d3f1.zip
Tasks: More updates to public API
Diffstat (limited to 'apps/tasks/ajax/addtask.php')
-rw-r--r--apps/tasks/ajax/addtask.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tasks/ajax/addtask.php b/apps/tasks/ajax/addtask.php
index 03eee7c5d9b..891fbdb96df 100644
--- a/apps/tasks/ajax/addtask.php
+++ b/apps/tasks/ajax/addtask.php
@@ -20,7 +20,7 @@ $request['description'] = null;
$vcalendar = OC_Task_App::createVCalendarFromRequest($request);
$id = OC_Calendar_Object::add($cid, $vcalendar->serialize());
-$user_timezone = OC_Preferences::getValue(OCP\User::getUser(), 'calendar', 'timezone', date_default_timezone_get());
+$user_timezone = OCP\Config::getUserValue(OCP\User::getUser(), 'calendar', 'timezone', date_default_timezone_get());
$task = OC_Task_App::arrayForJSON($id, $vcalendar->VTODO, $user_timezone);
OCP\JSON::success(array('task' => $task));