My timezone is wrong on CentOS Linux
How to set Linux Timezone
My timezone is wrong:
Tue Jun 18 13:19:19 EDT 2013
In order to change the timezone of your system you will need to access
the file /etc/sysconfig/clock directly:
Note: If your system's BIOS has UTC set to true, then set UTC to true.
If it has it set to false, set it to false. UTC in the configuration file
must always reflect your BIOS settings.
In order to get the particular zone you wish to use you must associate ZONE
with a file located in /usr/share/zoneinfo.
Finally save the file /etc/sysconfig/clock and on next reboot the system will
be set to the defined timezone.
For the time on the machine to reflect the change timezone we need to link the
zoneinfo file to /etc/localtime. This can be done as follows:
link the following file to /etc/localtime:
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
Now by typing the date command to display the time you should see if reflect the newly linked timezone:
Tue Jun 18 10:20:28 PDT 2013