Setting up Time Zone

Created by Yuriy Andamasov, Modified on Thu, 11 Jan at 5:34 PM by Srividya Anantapatnaikuni

Article review date
2024-01-03
Validated for VyOS versions
1.2.5, 1.3.5, 1.4.0

A system time zone must be specified, this can be done by either specifying the zone as Region/Location or as offset from UTC, the system's default zone is GMT. When the Region/Location format is being used, daylight savings time (DST) adjustments are done automatically. To set a zone, -completion can be used to display the various options, be aware that these are case sensitive:

vyos@vyos-rtr# set system time-zone 
Possible completions:
Local time zone
Africa
America
Antarctica
Arctic
Asia
Atlantic
Australia
Brazil
Canada
Chile
Etc
Europe
Indian
Mexico
Pacific
SystemV
US
UTC

Detailed information:
Enter the local timezone by specifying "Region/City"
Use auto-completion to see available regions and cities.
Start with one of these regions:
Africa America Antarctica Arctic Asia Atlantic
Australia Brazil Canada Chile Europe Indian
      Mexico      Mideast   Pacific      US

Show current time zone:

vyos@vyos-rtr# show system time-zone

To delete a time-zone:

vyos@vyos-rtr# delete system time-zone

Example 1: Set the system time zone to US/Pacific time:

vyos@vyos-rtr# set system time-zone US/Pacific
vyos@vyos-rtr# commit
vyos@vyos-rtr# show system time-zone
  time-zone US/Pacific

Example 2: To set a UTC offset use Etc/, use the positive sign (+) for west of Greenwich and the negative sign (-) for east of Greenwich (POSIX compliance); A timezone 8 hours west of Greenwich (behind UTC) would be 'Etc/GMT+8':

vyos@vyos-rtr# set system time-zone Etc/GMT+8
vyos@vyos-rtr# commit
vyos@vyos-rtr# show system time-zone
time-zone Etc/GMT+8


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article