Mandrake 8.2 clock

Kevin Geiss plug-discuss@lists.plug.phoenix.az.us
Mon, 19 Aug 2002 07:30:59 -0700


ok, so you want to have your hardware clock set to localtime rather
than UTC (according to the way you have /etc/sysconfig/clock setup;
this is correct if you are dual booting with windows).

The strange thing is that if your hardware clock simply got set to UTC,
it should be SEVEN hours off, not five.

The only think I can think of is to boot up, set the system clock
using date, rdate, or ntpdate, then run ntp to keep it correct. then
to set your hardware clock you need the command
'hwclock --systohc --localtime'. hwclock has a funky little thing where
when you use the --localtime or --utc flag once, it remembers that flag
for next time. so if you did 'hwclock --systohc --utc' then
'hwclock --systohc' it would be like you had the '--utc' flag on there
both times; this makes it quite confusing the first time you play with
it. So try calling 'hwclock --systohc --localtime' a few times.

If that still doesn't work, then you're down to putting a script in your
startup files (in redhat it was /etc/rc.d/rc.local, not sure what
it is in Mandrake). Disable ntp at boot, then in the startup script run
ntpdate or rdate and then start up ntp. sucks, because all your boot
messages will have funky times, but at least the time will be correct
before you get a log in prompt. I had to do that on a computer that had
a bad clock chip (it kept thinking it was 1997, and this was a couple
weeks ago)

good luck


On Mon, Aug 19, 2002 at 05:29:53AM -0700, Lee Einer wrote:
> Thanks, Kevin-
> 
> I had a look at /etc/sysconfig/clock, and the contents are as you 
> recommend. The problem persists. I have read the man page and the online 
> docs available for hwclock, and I am stumped!
> 
> Lee
> 
> KevinO wrote:
> 
> >This sounds like your box thinks that the clock is set to UTC (12-7 = 
> >5 hours)
> >
> >Take a look at the file:
> >
> >/etc/sysconfig/clock
> >
> >The contents should be like the following :
> >
> >ARC=false
> >UTC=false
> >ZONE=America/Phoenix
> >
> >Good luck,
> >    KevinO
> >
> >Lee Einer wrote:
> >
> >>
> >>Hi, all-
> >>
> >>My clock does not work well under Mandrake 8.2. Each time I sign on, 
> >>the time is either 5 hours ahead or 5 hours behind where it should 
> >>be. I tried changing the time with the KDE gui. No dice. I can 
> >>correct the time while under that session, but the next time I sign 
> >>on, the clock exhibits the same problem. I checked hwclock, and 
> >>verified that my hardware clock was keeping correct time. I tried 
> >>re-setting the sytem time, and then doing hwclock --hctosys. No 
> >>difference. I tried using the --localtime switch. No difference. I 
> >>tried using the --utc switch. Again, no difference. Any insights as 
> >>to how I can get this corrected?
> >>
> >>
> >>
> >>Lee Einer
> >>
> >>________________________________________________
> >>See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail 
> >>doesn't post to the list quickly and you use Netscape to write mail.
> >>
> >>PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> >>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >>
> >>
> >
> >
> >
> 
> 
> 
> ________________________________________________
> See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't 
> post to the list quickly and you use Netscape to write mail.
> 
> PLUG-discuss mailing list  -  PLUG-discuss@lists.plug.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss