How to set date and time automatically in CentOS
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.