From 19d2b94837f19539c994157150f3f231f840d3f1 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 4 May 2012 20:20:37 +0200 Subject: Tasks: More updates to public API --- apps/tasks/ajax/addtask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/tasks/ajax/addtask.php') 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)); -- cgit v1.2.3