Setting the system time with Debian Linux is very simple, using the date command, you may display the current date/time, then copy this to the date -s “” command and then edit it to the proper value. This is the easiest technique to set the Linux system time.
This is the existing date.
root@deusexmachina:/home/neo# date Sun Mar 25 06:43:17 EST 2012 |
So, we have to set a new date on the machine.
root@deusexmachina:/home/neo# date -s "Sun Mar 25 17:43:17 EST 2012" Sun Mar 25 17:43:17 EST 2012 root@deusexmachina:/home/neo# |
Now the date is correct.