Modifying the Default Time Zone for a Router or Switch Running Junos OS
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.
NOTE:
Junos OS complies with the POSIX time-zone standard, which is
counter-intuitive to the way time zones are generally indicated relative to
UTC. A time zone ahead of UTC (east of the Greenwich meridian) is commonly
indicated as GMT +n; for example, the Central European Time (CET) zone is
indicated as GMT +1. However, this is not true for POSIX time zone
designations. POSIX indicates CET as GMT-1. If you include the
set system
time-zone GMT+1
statement for a router in the CET zone, your router time will
be set to one hour behind GMT, or two hours behind the actual CET time. For
this reason, you might find it easier to use the POSIX time-zone strings, which
you can list by entering
set system time-zone ?
.
For the time zone change to take effect for all processes running on the router or switch,
you must reboot the router or switch.
The following example shows how to change the current time zone to
America/New_York
:
[edit]
user@host#
set system time-zone America/New_York
[edit]
user@host#
show
system {
time-zone America/New_York;
}
Related
Documentation
NTP Overview on page 3
•
•
Updating the IANA Time Zone Database on Junos Devices on page 20
Copyright © 2014, Juniper Networks, Inc.
12
Time Management Administration Guide for Routing Devices
Содержание Dynabug 57810
Страница 6: ...Copyright 2014 Juniper Networks Inc vi Time Management Administration Guide for Routing Devices...
Страница 13: ...PART 1 Overview Time Management Overview on page 3 1 Copyright 2014 Juniper Networks Inc...
Страница 14: ...Copyright 2014 Juniper Networks Inc 2 Time Management Administration Guide for Routing Devices...
Страница 20: ...Copyright 2014 Juniper Networks Inc 8 Time Management Administration Guide for Routing Devices...
Страница 54: ...Copyright 2014 Juniper Networks Inc 42 Time Management Administration Guide for Routing Devices...
Страница 56: ...Copyright 2014 Juniper Networks Inc 44 Time Management Administration Guide for Routing Devices...
Страница 57: ...CHAPTER 4 Operational Commands set date 45 Copyright 2014 Juniper Networks Inc...
Страница 59: ...CHAPTER 5 Monitoring Commands show ntp associations show ntp status 47 Copyright 2014 Juniper Networks Inc...
Страница 64: ...Copyright 2014 Juniper Networks Inc 52 Time Management Administration Guide for Routing Devices...
Страница 65: ...PART 4 Index Index on page 55 53 Copyright 2014 Juniper Networks Inc...
Страница 66: ...Copyright 2014 Juniper Networks Inc 54 Time Management Administration Guide for Routing Devices...