Add getTimezone() procedure to the API

This commit is contained in:
Frédéric Guillot
2014-11-30 19:43:34 -05:00
parent 4bba5be037
commit 81df6a36b4
3 changed files with 41 additions and 0 deletions

View File

@@ -337,6 +337,13 @@ $server->register('updateSubtask', function($id, $task_id, $title = null, $user_
return $valid && $subTaskModel->update($values);
});
/**
* Application procedures
*/
$server->register('getTimezone', function() use($configModel) {
return $configModel->get('application_timezone');
});
/**
* Parse incoming requests
*/