# salt.states.timezone

## Management of timezones

The timezone can be managed for the system:

    America/Denver:
      timezone.system

The system and the hardware clock are not necessarily set to the same time. By default, the hardware clock is set to localtime, meaning it is set to the same time as the system clock. If utc is set to True, then the hardware clock will be set to UTC, and the system clock will be an offset of that.

    America/Denver:
      timezone.system:
        - utc: True

The Ubuntu community documentation contains an explanation of this setting, as it applies to systems that dual-boot with Windows. This is explained in greater detail here.

`salt.states.timezone.` `system`(name, utc='')

  Set the timezone for the system.

  name
    The name of the timezone to use (e.g.: America/Denver)
  utc
    Whether or not to set the hardware clock to UTC (default is True)

Current Salt release: 0.17.1

### Table Of Contents

- salt.states.timezone
  - Management of timezones

#### Previous topic

salt.states.sysctl

#### Next topic

salt.states.tomcat

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd