Add documentation for USE_24_HOUR_TIME_FORMAT (#148)

This commit is contained in:
Christopher C. Wells 2020-07-22 19:48:56 -07:00
parent aa261616a9
commit 6b06dbf936
1 changed files with 16 additions and 0 deletions

View File

@ -284,6 +284,7 @@ take precedence over the contents of an `.env` file.**
- [`NAP_START_MIN`](#nap_start_min) - [`NAP_START_MIN`](#nap_start_min)
- [`SECRET_KEY`](#secret_key) - [`SECRET_KEY`](#secret_key)
- [`TIME_ZONE`](#time_zone) - [`TIME_ZONE`](#time_zone)
- [`USE_24_HOUR_TIME_FORMAT`](#use_24_hour_time_format)
### `ALLOWED_HOSTS` ### `ALLOWED_HOSTS`
@ -369,6 +370,21 @@ The default time zone to use for the instance. See [List of tz database time zon
for all possible values. This value can be overridden per use from the user for all possible values. This value can be overridden per use from the user
settings form. settings form.
### `USE_24_HOUR_TIME_FORMAT`
*Default: False*
Whether to force 24-hour time format for locales that do not ordinarily use it
(e.g. `en`). Support for this feature must implemented on a per-locale basis.
See format files under [`babybuddy/formats`](babybuddy/formats) for supported
locales.
Note: This value for this setting is interpreted as a boolean from a string
using Python's built-in [`strtobool`](https://docs.python.org/3/distutils/apiref.html#distutils.util.strtobool)
tool. Only certain strings are supported (e.g. "True" for `True` and "False" for
`False`), other unrecognized strings will cause a `ValueError` and prevent Baby
Buddy from loading.
## Languages ## Languages
Baby Buddy includes translation support as of v1.2.2. Language can be set on a Baby Buddy includes translation support as of v1.2.2. Language can be set on a