Here are the steps to set date and time in linux
Steps1) Set the time zone
# rm /etc/localtime#ln -s /usr/share/zoneinfo/GMT /etc/localtime
Step2) Set the time and date
Below are the commands that are required. For the date command this will set the time and date to 28th March 2012 18:08. The syntax is `date MMDDhhmmYYYY`.
# date 032818082012
Step3) Sync the hwclock with the current time and date
#hwclock --systohc
Confirm Settings
To confirm your machine is set with the right time and date run the following commands :
# date # hwclock