To change the system date/time in Linux create a symlink to /etc/localtime for the correct time zone.

Verify the new time with “date” then update the hardware clock with “hwclock”

$ ln -sf /usr/share/zoneinfo/America/Denver /etc/localtime
$ date
$ hwclock --systohc

You can also use ntpdate for NTP (Network Time Protocol)

$ ntpdate pool.ntp.org
$ hwclock --systohc

You will need to restart httpd to see this change reflected in your webserver.

Other Time Links
http://www.time.gov
Network Time Protocol

Google Buzz
  • Share/Bookmark