Server time

Quite often when setting up a new Web Server Admins forget about such an important parameter as the time on the server. And it is on it will run in cron scripts and programs. Team work with time() and date() in PHP. Find out the current date, time, and time zone on the server command # date
Set time zone:

Centos:

# cp/usr/share/zoneinfo/Europe/Moscow called
Sync time:

Centos:

# yum install ntp
# ntpdate time.nist.gov
Set up automatic synchronization, the addition of a line in cron:

1 * 0 * * ntpdate europe. at ntp.org.