summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-11-30 19:43:34 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-11-30 19:43:34 -0500
commit81df6a36b4b77fcf3f76658d7359fae0d541cf61 (patch)
treec4e380b9b97903827cad1aabf48e0b58c49d1c6e /jsonrpc.php
parent4bba5be037d4ce3ebaefedaac0d840bce9206551 (diff)
Add getTimezone() procedure to the API
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index e9a50b35..75a55c92 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -338,6 +338,13 @@ $server->register('updateSubtask', function($id, $task_id, $title = null, $user_
});
/**
+ * Application procedures
+ */
+$server->register('getTimezone', function() use($configModel) {
+ return $configModel->get('application_timezone');
+});
+
+/**
* Parse incoming requests
*/
echo $server->execute();