summaryrefslogtreecommitdiff
path: root/interface-definitions/system-time-zone.xml.in
blob: ff815c9d3c6d1055d2e5ea75c11d2093ff8378a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="system">
    <children>
      <leafNode name="time-zone" owner="${vyos_conf_scripts_dir}/system-timezone.py">
        <properties>
          <help>Local time zone (default UTC)</help>
          <priority>100</priority>
          <completionHelp>
            <script>find /usr/share/zoneinfo/posix -type f -or -type l | sed -e s:/usr/share/zoneinfo/posix/:: | sort</script>
          </completionHelp>
          <constraint>
            <validator name="timezone" argument="--validate"/>
          </constraint>
        </properties>
      </leafNode>
    </children>
  </node>
</interfaceDefinition>