summaryrefslogtreecommitdiff
path: root/interface-definitions/system-option.xml.in
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-08-01 09:34:24 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-08-01 09:34:24 +0000
commit7fd6d8c0e99ff4cb566598af65d8915c658ed749 (patch)
tree2f5102609ef76a3c3d3e58be3b0204f649f2836a /interface-definitions/system-option.xml.in
parent348cc302258b59b3e31c4aeb7ccc432086908edc (diff)
downloadvyos-1x-7fd6d8c0e99ff4cb566598af65d8915c658ed749.tar.gz
vyos-1x-7fd6d8c0e99ff4cb566598af65d8915c658ed749.zip
T5374: Add system option time-format 12 or 24 hours
Ability to set locate time format 12|24-hour set system option time-format 12-hour|24-hour $ date Tue Aug 1 12:33:45 PM EEST 2023 $ date Tue 1 Aug 12:34:09 EEST 2023
Diffstat (limited to 'interface-definitions/system-option.xml.in')
-rw-r--r--interface-definitions/system-option.xml.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/interface-definitions/system-option.xml.in b/interface-definitions/system-option.xml.in
index efab50a66..b1b5f7fae 100644
--- a/interface-definitions/system-option.xml.in
+++ b/interface-definitions/system-option.xml.in
@@ -144,6 +144,26 @@
<valueless/>
</properties>
</leafNode>
+ <leafNode name="time-format">
+ <properties>
+ <help>System time-format</help>
+ <completionHelp>
+ <list>12-hour 24-hour</list>
+ </completionHelp>
+ <valueHelp>
+ <format>12-hour</format>
+ <description>12 hour time format</description>
+ </valueHelp>
+ <valueHelp>
+ <format>24-hour</format>
+ <description>24 hour time format</description>
+ </valueHelp>
+ <constraint>
+ <regex>(12-hour|24-hour)</regex>
+ </constraint>
+ </properties>
+ <defaultValue>12-hour</defaultValue>
+ </leafNode>
</children>
</node>
</children>