summaryrefslogtreecommitdiff
path: root/interface-definitions/system-time-zone.xml.in
blob: 1ef739735ab8c09e7ccd45dc65b25bcb5b39962f (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}/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>