Home >

Appliance Administration Guide > Timestamping – NTP and Time Drift > Setting the Time Zone

Setting the Time Zone

In LunaSH, the sysconf timezone command allows you to change the current system time zone setting. The sysconf timezone command accepts any time zone defined in the Time Zone Database maintained by IANA (also often referred to as zoneinfo, tzdata, or tz). You may prefer to use an offset of Greenwich Mean Time (GMT), or to set your local time zone. For a list of accepted time zone abbreviations, use the command sysconf timezone list, or see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.

Note that the time zone code reported by sysconf timezone show is a localized abbreviation. For example, the following three commands set the time zone code to “EST” or "EDT", depending on whether Daylight Saving Time (DST) is currently in effect:

sysconf timezone set America/Kentucky/Louisville

sysconf timezone set America/Toronto

sysconf timezone set EST5EDT

If you choose a named time zone, the system automatically adjusts for DST on the appropriate dates.

If you choose a simple time zone abbreviation (like EST) or GMT plus-or-minus a numeric offset (like Etc/GMT+5), that value is fixed, and the system does not adjust for DST. You must therefore make any appropriate time changes manually.

Note:  If you choose to enter GMT plus-or-minus a numeric offset, please note that zone names beginning with "Etc/GMT" have their signs reversed. Zones west of GMT have a (+) sign and zones east of GMT have a (-) sign.

Examples

To set the time zone to... Command
Eastern Standard Time sysconf timezone set EST
Greenwich Mean Time -5 hours (same as EST) sysconf timezone set Etc/GMT+5
Eastern Time (with automatic DST adjustments) sysconf timezone set EST5EDT
Abidjan sysconf timezone set Africa/Abidjan
Hong Kong sysconf timezone set Hongkong
Knox, Indiana, USA sysconf timezone set America/Indiana/Knox