How to set date and time automatically in CentOS
Created on 2013-Apr-18
Updated on 2013-Apr-18
tzselect
Answer the 3 locations questions. Then create a symlink to your local time.
rm -rf /etc/localtime
ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
The symlink will be according to your time zone--above is just an example.
Now, we check the date and time
date
Time and date should now be properly set.