[wplug] System time on debian

Alexandros Papadopoulos apapadop at cmu.edu
Sat Jun 12 20:02:07 EDT 2004


On Friday 11 June 2004 09:59, Andreas Rindler wrote:
> Hey,
> I recently installed Debian and I somehow screwed up the system time.
> I am in the Eastern US time zone but the system clock is 6 hours
> behind. I.e., it should be 7 am, but the system displays 1 am.
>
> I found the date command, but couldn't quite figure out how to change
> the time with someting like
> current date +6

Short answer: 
It looks like a time zone issue, which can be fixed by running 
"tzconfig" as root.

Long answer:
Theory says that the hardware clock (the one controlled by your 
machine's BIOS) should always be set at UTC [0] (which is equivalent to 
GMT). The operating system should know which time zone you're currently 
at, and adjust the system time (what you see when using the "date" 
command on your system) accordingly.

You can control the hardware clock from within Linux, with the "hwclock" 
command. Use
#hwclock --help
to find out what it can do for you.

Cheers

-A

[0] http://www.timeanddate.com/worldclock/ (warning - lots and lots of 
cookies, which you needn't accept)



More information about the wplug mailing list