From 7c6735ddac449a6f72fe0ae7d72b13d7279f84b9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 1 Jun 2022 15:44:57 -0400 Subject: [PATCH] Add ZM_LOCALE_DEFAULT, ZM_DATE_FORMAT_PATTERN and ZM_DATETIME_FORMAT_PATTERN config entries --- .../lib/ZoneMinder/ConfigData.pm.in | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index d70c3efc6..edee8fce7 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -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',