Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

api: Document meaning for twenty_four_hour_time=null.

Tim Abbottd465705177a7
diff --git a/version.py b/version.py
index 76064800602..70855872f2e 100644
--- a/version.py
+++ b/version.py
@@ -34,7 +34,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"
# new level means in api_docs/changelog.md, as well as "**Changes**"
# entries in the endpoint's documentation in `zulip.yaml`.
-API_FEATURE_LEVEL = 407
+API_FEATURE_LEVEL = 408
# Bump the minor PROVISION_VERSION to indicate that folks should provision
# only when going from an old version of the code to a newer version. Bump
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 076dabe885c..ca9d46a4cf8 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -16968,8 +16968,16 @@ paths:
properties:
twenty_four_hour_time:
type: boolean
+ nullable: true
description: |
Whether time should be [displayed in 24-hour notation](/help/change-the-time-format).
+
+ A `null` value indicates that the client should use the default time
+ format for the user's locale.
+
+ **Changes**: Prior to Zulip 11.0 (feature level 408), `null`
+ was not a valid value for this setting. Note that it was not possible
+ to actually set the time format to `null` at this feature level.
web_mark_read_on_scroll_policy:
type: integer
description: |
@@ -19817,14 +19825,21 @@ paths:
properties:
twenty_four_hour_time:
type: boolean
+ nullable: true
description: |
Whether time should be [displayed in 24-hour notation](/help/change-the-time-format).
- **Changes**: New in Zulip 5.0 (feature level 99).
- This value was previously available as
- `realm_default_twenty_four_hour_time` in
- the top-level response object (only when `realm` was
- present in `fetch_event_types`).
+ A `null` value indicates that the client should use the default time
+ format for the user's locale.
+
+ **Changes**: Prior to Zulip 11.0 (feature level 408), `null`
+ was not a valid value for this setting. Note that it was not possible
+ to actually set the time format to `null` at this feature level.
+
+ New in Zulip 5.0 (feature level 99). This value was previously
+ available as `realm_default_twenty_four_hour_time` in the top-level
+ response object (only when `realm` was present in
+ `fetch_event_types`).
web_mark_read_on_scroll_policy:
type: integer
description: |