Changing the system date and time in linux
On load balanced servers (where one server is the ‘master’ and other servers synchronize with the master server), the operating system’s time and date settings may be crucial for the synchronization process.If the date and time settings on a server are wrong, some files may not synchronize at all.
To retrieve the date/time in Linux/Unix, use the following command at the linux command line:
date
to set the date, you can use the command like this:
date –set=”2002-6-29 23:22″
You will need appropriate privileges to set the system time.