Add ZM_LOCALE_DEFAULT, ZM_DATE_FORMAT_PATTERN and ZM_DATETIME_FORMAT_PATTERN config entries

pull/3551/head
Isaac Connor 2022-06-01 15:44:57 -04:00 committed by Isaac Connor
parent 334a2566ea
commit 7c6735ddac
1 changed files with 33 additions and 0 deletions

View File

@ -223,6 +223,39 @@ our @options = (
type => $types{string},
category => 'system',
},
{
name => 'ZM_LOCALE_DEFAULT',
default => '',
description => 'Default locale used when formatting date/time strings',
help => q`ZoneMinder will default to the system set locale. This
option allows to override it. The locale is used to determine the format
string used when formatting dates and times.
`,
type => $types{string},
category => 'system',
},
{
name => 'ZM_DATE_FORMAT_PATTERN',
default => '',
description => 'Date format override',
help => q`Pattern to use to override the format string used for dates.
Leave it empty to use the defaults for the set locale.
See [unicode-org](https://unicode-org.github.io/icu/userguide/format_parse/datetime/) for values.
`,
type => $types{string},
category => 'system',
},
{
name => 'ZM_DATETIME_FORMAT_PATTERN',
default => '',
description => 'Date/time format override',
help => q`Pattern to use to override the format string used for dates
and times. Leave it empty to use the defaults for the set locale.
See [unicode-org](https://unicode-org.github.io/icu/userguide/format_parse/datetime/) for values.
`,
type => $types{string},
category => 'system',
},
{
name => 'ZM_OPT_USE_AUTH',
default => 'no',