Set the correct timezone on your Linode
The timezone under Linux is set by a symbolic link from /etc/localtime to a file in the /usr/share/zoneinfo directory that corresponds with what timezone you are in.
# ls /usr/share/zoneinfo/
Africa Cuba GMT0 Japan Poland UCT
America EET GMT-0 Kwajalein Portugal Universal
Antarctica Egypt GMT+0 Libya posix US
Arctic Eire Greenwich MET posixrules UTC
Asia EST Hongkong Mexico PRC WET
Atlantic EST5EDT HST Mideast PST8PDT W-SU
Australia Etc Iceland MST right zone.tab
Brazil Europe Indian MST7MDT ROC Zulu
Canada Factory Iran Navajo ROK
CET GB iso3166.tab NZ Singapore
Chile GB-Eire Israel NZ-CHAT SystemV
CST6CDT GMT Jamaica Pacific Turkey
# ls /usr/share/zoneinfo/US/
Alaska Arizona Eastern Hawaii Michigan Pacific
Aleutian Central East-Indiana Indiana-Starke Mountain Samoa
For example, I want to set my Linux install to use US/Central timezone, so I would execute the following:
ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
By default, the distros are set up for US/Eastern (I believe). Setting your correct timezone helps spread out the load when all the cron jobs fire off in the early mornings. Please do this.
ln -sf /usr/share/zoneinfo/your/zone /etc/localtime
Thanks,
-Chris
8 Replies
# tzconfig
Your current time zone is set to Europe/Copenhagen
Do you want to change that? [n]:
Press "y" and then simply answer the questions.
Also, "timeconfig" serves the same purpose in slackware.
How do I do so?
From many of the guides in the library:
E.g.:
> dpkg-reconfigure tzdata
How do I tell it to select a specific timezone?
May be by some parameters?
Or chaning the symlinks did the same way?
user@localhost ~> sudo dpkg-reconfigure tzdata
Current default time zone: 'America/Chicago'
Local time is now: Thu Nov 29 15:33:51 CST 2018.
Universal Time is now: Thu Nov 29 21:33:51 UTC 2018.
user@localhost ~> date
Thu Nov 29 13:34:11 PST 2018
user@localhost ~>
Hi, I tried to change time zone of my linode to us/chicago time and command worked fine but when I check time using date command I see it again in PST.
Any idea?