LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wrong UTC time (https://www.linuxquestions.org/questions/linux-newbie-8/wrong-utc-time-375290/)

sundaraz 10-20-2005 10:56 PM

Wrong UTC time
 
Hi,
I have a dual boot system. My BIOS clock is set to local time. I also have the "System Clock Uses UTC" option turned off. But stiil linux thinks that the BIOS time is the UTC time and adjusts the system time accordingly.

Please find the contents of /etc/sysconfig/clock file

ZONE="America/Chicago"
UTC=false
ARC=false

Is there any way to say that the BIOS time is not UTC time?

Also the command 'hwclock' with any of the options, produces no ouput. Not sure if this is a problem.

Thanks,
Raj

xhi 10-21-2005 10:11 AM

Try

`timeconfig`

It should help.

sundaraz 10-21-2005 04:58 PM

Thanks. But it does the same thing as Desktop->System Settings->Date & Time and doesn't help. I am trying to do something with hwclock, but it doesn't do anything. Like, even hwclock -h doesn't produce any output.

xhi 10-21-2005 05:32 PM

hmm, what happens if you do a
`hwclock --debug`

also
from man page
hwclock tries to use /dev/rtc. If it is compiled for a kernel that doesn't have that function or it is unable to open /dev/rtc, hwclock will fall back to another method, if available.

does /dev/rtc exist? maybe you dont have "another method" available if it does not exist? i know before i added it into the kernel, debug from hwclock gave me errors about no /dev/rtc... maybe add that? if so CONFIG_RTC is under character devices in kernel config

?

sundaraz 10-21-2005 10:45 PM

Thanks again. I figured out (through google) that i had to do "setenforce 0" to see output on hwclock. So, i enabled Network Time Protocol (NTP) and did hwclock --systohc. Anyways my BIOS clock was already right and local, I also did hwclock --localtime, to associate hwclock time to localtime.

Rebooted and am back to square one. I checked rc.sysinit and it seems to be calling /etc/sysconfig/clock, which looks right as i had pasted before.

Since i am connected all the time, I am just leaving it at NTP for now.

But i would be really glad to know, how to make linux think that hwclock is only localtime.


All times are GMT -5. The time now is 11:23 AM.