On Monday, 1 November 2004 01.39, Örn Hansen wrote:
måndag 01 november 2004 01:03 skrev Anders Johansson:
As the man page explains, hwclock *always* show the time in local time, regardless of how it's actually stored in CMOS
After re-configuration:
citadel:/home/oehansen # hwclock mån 1 nov 2004 00.35.38 -0.174339 sekunder citadel:/home/oehansen # hwclock --utc mån 1 nov 2004 00.37.52 -0.883456 sekunder citadel:/home/oehansen # date mån nov 1 01:37:53 CET 2004 citadel:/home/oehansen #
I expected the same result as you pointed out. That when I would write 'hwclock' I'd get the cmos time, but when using 'hwclock --utc' I'd get the local time. But, when I specify the system to use UTC, the above is the result.
Delete /etc/adjtime, that's what tells hwclock if the hardware clock is local or utc, then do "hwclock --utc --systohc" btw, for some reason - I guess I read your mail too quickly - I missed that it wasn't just the output from "hwclock" you were looking at, but that you were comparing it to "hwclock --utc". That's why my earlier mail was so confused. Sorry