[CLUE-Tech] hwclock on debian

Randy Arabie randy at arabie.org
Wed Feb 19 06:16:37 MST 2003


On Tuesday, 18 February 2003 at 19:14:08 -0700, David Anselmi <anselmi at americanisp.net> wrote:
> Randy Arabie wrote:
> [...]
> >hwclock --show prints the UTC time, and date prints the same time, but
> >claims it is MST.
> 
> No, it prints the time kept by the hardware clock in local time 
> regardless of what it is actually in.  Check the man page.

Ok.  I guess I mistated that.  hwclock --show prints the time reported
by my BIOS clock, which I have set to UTC time.

	Wed Feb 19 13:05:36 2003 -0.241668 seconds
	(MST +7, as it should be)

date is not doing the converversion, it prints the same time, but sticks
an MST in there.

	Wed Feb 19 13:05:40 MST 2003
	(Dooh!  date should -7, making it 06:05:40)

> Use hwclock --show --debug and see what it says.  It should make clear 
> what is what.
> 
> The real test is to touch a file and compare the time ls reports and the 
> time date reports.  If those are the same all is well.

They are the same, but date still thinks my hwclock is set to local
time (MST).  It isn't, it is set to UTC.  Using the date -u command, it
tells me the time is Wed Feb 19 20:11:19 UTC 2003, that's MST +7 hours.

The bottom line is, I need to know how to tell date that my hwclock is
now set to UTC, not MST.

I thought changing the UTC=yes in /etc/default/rcS would take care of
that, but it hasn't (BTW, I did reboot after that change).
-- 
Allons Rouler!
        
Randy
http://www.arabie.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://cluedenver.org/pipermail/clue-tech/attachments/20030219/b051d4cf/attachment.bin


More information about the clue-tech mailing list