From 81df6a36b4b77fcf3f76658d7359fae0d541cf61 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 30 Nov 2014 19:43:34 -0500 Subject: Add getTimezone() procedure to the API --- jsonrpc.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'jsonrpc.php') diff --git a/jsonrpc.php b/jsonrpc.php index e9a50b35..75a55c92 100644 --- a/jsonrpc.php +++ b/jsonrpc.php @@ -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 */ -- cgit v1.2.3