October 16th, 2007 How to set your date and time in Debian
It could happen to anyone to have problems with date and time. For example I had a problem a few day’s ago with an older server of mine which has problems with hardware time, it resets everytime I disconnect it from power. Its something to do with the motherboard I changed the battery but that didn’t solved the problem. That’s why sometimes I need to correct its date with the following method:
date –set 2007-10-15
to set yyyy-mm-dd
date –set 16:47:30
to set hh-mm-ss
hwclock –systohc
to sync hardware clock to what we introduced earlier
At least from Debian version 2.2 onwards, the system automatically saves the system time to hardware clock on shutdown, and sets the system clock from hardware clock when Debian boots up. This is done in the script /etc/init.d/hwclock.sh.
Another thing you might ran into is changing the timezone.
If the timezone is not set or is wrong, log in as superuser and run tzconfig to configure the timezone.
That’s it a short tutorial about date in Debian.
Tags: date, Debian, Linux, time, tutorial









October 17th, 2007 at 9:22 am
I couldn’t understand some parts of this article o.us poetry, but I guess I just need to check some more resources regarding this, because it sounds interesting.
November 11th, 2007 at 1:11 am
apt-get install ntpdate
November 22nd, 2007 at 11:10 am
ntpdate its bit harder to use than the method explained above , especially on debian ntpdate can cause problems if you dont know how to deal with it(you need a time server address to enter, etc.) for beginners is better to use the method above. ! good luck