In order to change the default time zone for your machine all you would need to do is follow a few simple steps.
First thing you need to know is where your default time zone is actually set. The path to that file is as follows:
/etc/localtime
To find a list of the available time zones you could look in:
/usr/share/zoneinfo
So now that we know those basic details, lets continue on to modifying our time zone.
First we’ll start by making a backup of the /etc/localtime file.
mv /etc/localtime /etc/localtime.bak
Second we’ll need to create a symbolic link to the new time zone found within the zoneinfo directory.
ln –s /usr/share/zoneinfo/Europe/London /etc/localtime
What we did above, is just create a new shortcut for /etc/localtime that points to the new time zone for Europe/London.
Let me know if you have any questions.
Post By: Frank Perez | Add to favorites
Dave Broome
Thursday, February 21, 2013
Cheers Frank, very useful post!
One problem I had:
The final command (ln -s …) is using an en-dash instead of a hyphen, and won’t work. So, for anyone else: Make sure you type it out, instead of copy-pasting.
Cheers
DB
Changing your Time zone on GNU/Linux Box | Frank Perez
Tuesday, September 13, 2011
[...] Read more… ← Creating Linux Partitions Using fdisk GNU/Linux Apache HTTP Server Benchmarking Tool → [...]