The default local time zone on the router is UTC (Coordinated Universal Time, formerly known as Greenwich Mean Time, or GMT). To modify the local time zone, include the time-zone statement at the [edit system] hierarchy level:
- [edit system]
-
time-zone (GMThour-offset | time-zone);
You can use the GMT hour-offset option to set the time zone relative to UTC (GMT) time. By default, hour-offset is 0. You can configure this to be a value in the range from –14 to +12.
You can also specify time-zone as a string such as PDT (Pacific Daylight Time) or WET (Western European Time), or specify the continent and major city.
For the time zone change to take effect for all processes running on the router, you must reboot the router.
Set the time zone relative to UTC (GMT):
- [edit]
- user@host# set system time-zone GMT+2
Set the time zone for Pacific Daylight Time:
- [edit]
- user@host# set system time-zone PDT
- [edit]
- user@host# show
- system {
- time-zone PDT;
- }
Set the time zone for New York:
- [edit]
- user@host# set system time-zone America/New_York
- [edit]
- user@host# show
- system {
- time-zone America/New_York;
- }
For information about what time zones are available, see time-zone.