I am running sudo date +%m/%d/%Y -s 7/14/2010 command to change date. It changes fine except I want it to pick up the current time as well, and not start the time from 00:00:00 on 7/14/2010.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|
Just extend the call to include hour information too:
|
|||
|
|
If you need accurate time, use ntpdate or better run ntpd daemon: Example:
|
|||
|
|
|
It is often a good idea to sync the BIOS clock if there is that much of an offset after changing. This can be done via:
Typically distributions write to BIOS on a shutdown. |
||||
|