summaryrefslogtreecommitdiff
path: root/docs
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 /docs
parent4bba5be037d4ce3ebaefedaac0d840bce9206551 (diff)
Add getTimezone() procedure to the API
Diffstat (limited to 'docs')
-rw-r--r--docs/api-json-rpc.markdown27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/api-json-rpc.markdown b/docs/api-json-rpc.markdown
index d30ac362..5280600e 100644
--- a/docs/api-json-rpc.markdown
+++ b/docs/api-json-rpc.markdown
@@ -144,6 +144,33 @@ Array
Procedures
----------
+### getTimezone
+
+- Purpose: **Get the application timezone**
+- Parameters: none
+- Result on success: **Timezone** (Example: UTC, Europe/Paris)
+- Result on failure: **Default timezone** (UTC)
+
+Request example:
+
+```json
+{
+ "jsonrpc": "2.0",
+ "method": "getTimezone",
+ "id": 1661138292
+}
+```
+
+Response example:
+
+```json
+{
+ "jsonrpc": "2.0",
+ "id": 1661138292,
+ "result": "Europe\/Paris"
+}
+```
+
### createProject
- Purpose: **Create a new project**