Change the date and time of a debian server
To change the date and time of a Linux server we will do it with the date instruction in the following way:
date -set «year-month-day hour: min»
For example:
date -set «2013-07-02 18:46»
To see the date that appears in the BIOS can be obtained with the instruction hwclock
In the same way we can change it with
hwclock -set -date = »2013-07-02 18:46"
If, on the other hand, we want to connect to an ntp server or a time server, we will have to configure the ntp service in debian .