User guide

set timezone
222 Chapter 2 Command Descriptions
set timezone
Device support This command is supported in PortServer TS 8/16 Family and PortServer
TS 8/16 MEI Family devices only.
Purpose Sets the time zone information for the device. It is necessary to set the time
zone information when daylight saving is desired or when the device is
using Simple Network Time Protocol (SNTP). Failure to set time zone when
using SNTP will result in time always being set to the UTC/GMT time and
not the local time.
You can set the time zone by either using the rules for a given region or
city, or by manually entering time-zone offsets and rules. Using the rules for
a given region or city is the simpler method.
Required
permissions
The root user can configure time zone settings. Normal users can display
time zone settings.
Syntax Display a list of all of the time-zone regions that can be specified
set timezone name
Configure time zone by using rules for a given region or city
set timezone [name=region/city|name=city]
Configure time zone by manually entering time-zone offsets and rules
set timezone [std_offset=[-]hh:mm:ss]
[dst_offset=[-]hh:mm:ss]
[dst_rule=date[/time],date[/time]]
Display time zone settings
set timezone
Options name=region/city|name=city
The “name” option is provided as a way to automatically fill in the time
zone offsets and rules for a given region/city. For example, to set time
zone for North America central time zone, you would specify
“name=Chicago”. To display a list of all of the time-zone regions that can
be specified, enter the command “set timezone name ?“
std_offset=[-]hh:mm:ss
The offset relative to UTC or GMT time when standard time is in effect.
For example, for the North America Central time zone, enter
“std_offset=-6”
dst_offset=[-]hh:mm:ss
The offset relative to UTC or GMT time when day light saving time is in
effect. For example, for the North America Central time zone, use
“dst_offset=-5”