time wrong after power failure
Hi
I have the following problem,After a power failure my machines time is off by 2 hours.I am not using UTC so according to me it should not adjust time according to daylight savings,etc.What could cause this,I am sure the time is correct before the power failure.Thanks for any help... |
which ditro are you using? mepis?
you can use the 'ntpdate' command to update the time to an appropriate time server. also check you regional settings... |
I'm using FC3 kernel 2.6.12-1.1381_FC3 on that machine.I am updating time through ntpdate at 2:30 am through a cron job,but if the power fails before that the time will be wrong until then.It only happens on the one machine,the other machines time is still correct after power failure.My timezone is southfrica/Johannesburg so why will it change after the power failure?
|
it sounds like your CMOS battery has failed - your time is being forgetting by the hardware when you power off.
it looks like a large watch battery. try making some change to your bios and see if it's remembered. |
Its a remote machine,so I'll check the battery later,but i'm pretty sure that's not the problem,because the machine is still pretty new,so thae battery should be fine.but thanks for your help.
|
so it keeps reseting to UTC?
|
It seems so yes,is there anything else that would cause the time to be set back by 2 hours?except a faulty battery.As i said i'm not using UTC,but still it seems to reset to it.very weird...
|
Could be updating with a time server over the net and have the wrong zone maybe?
|
yeah, it's not battery.
i don't know fedora and it's regional settings. but that seems to be the problem. is there an /etc/timezone ??? |
anti - not if you have your time zone set correctly - it should adjust your time accordingly. try changing your timezone and doing an ntpdate.....
|
There's no /etc/timezone but there's a /etc/sysconfig/clock where you can change the timezone ,mine="Africa/Johannesburg", which is right,the UTC,mine is set to false,and ARC ,which i'm not to sure what it does but mine is false.
I am not updating time to any ntp server other than the ntpdate i run through a cron,so that shoul not be the problem as well... |
Quote:
i thiunk that problem must lie in this area. i live in UTC land though... :-D |
Hallo again.I've "fixed" it by just running a ntpdate command when the system boots up again after a power failure,but in the background the time is still getting set back by two hours for some reason,i'm just setting it right again every time,so if someone knows what it might be please let me know,but i guess its fine as it is now...
|
Sounds a bit unlikely, but is the machine dual-boot by any chance? Windows handles daylight-savings differently to Linux, with the result that my Linux(/system) clock was put back (or forward, I forget which) an hour when I booted into Windows. The 'solution' was to disable Windows' "Automatically update the clock for daylight savings" thing, which I still think does it the wrong way. It did mean the time was an hour out in Windows though, which may or may not be appropriate for you (if it's even relevant).
|
All times are GMT -5. The time now is 07:47 PM. |