LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux changes time everytime I boot (http://www.linuxquestions.org/questions/linux-general-1/linux-changes-time-everytime-i-boot-497988/)

matthaeus 11-02-2006 03:33 PM

Linux changes time everytime I boot
 
Hi,

my problem is that everytime I boot under Linux my time is switched by some minutes up to half an hour, always backwards. This started since the summer-winter-time switch. It doesn't occur, if I boot windows. Has anybody an idea what is going on and where to check?

I'm now always setting the time under Yast (I'm using Suse 10.1 with all available patches).

Best,
Mat

Brian1 11-02-2006 03:59 PM

If it changes in minutes versuses hours I would say either the bios battery is weak and not keeping the time in the bios correct. Set the time in the bios then see what happens

Brian

matthaeus 11-03-2006 04:12 AM

Hi,

I set the time in the bios, and after booting directly after that to Linux the time was 1 minute behind. But I doubt, that it is the bios battery, because I bought the notebook in may this year (a Sony notebook). And also the problem doesn't occur, if I boot Windows. Strange also, that it started after switching from summer-time to winter-time.

Does anybody know how opensuse 10.1 manages the time during the boot?

matthaeus 11-04-2006 07:26 AM

I solved the problem now. For the record: I delete the file
Code:

/etc/adjtime
It is responsible for adjusting the time of the hardware-clock to the system-time. There was some entry which adjusted the time wrongly. The file is recreated at the next boot.

Mat

paulsm4 04-27-2008 11:48 AM

Linux config: BIOS clock UTC vs localtime
 
Just FYI, the issue is whether the BIOS clock stores time as "UTC" or as "localtime".

In SimplyMepis 7.0, the solution is [quote]
vi /etc/default/rcS
<= Change "UTC=no" (localtime, the SimplyMepis default) to "UTC=yes" (now both Windows/Vista and SimplyMepis/Linux expect the BIOS to store time in UTC, and the clock will read the same time booting to either OS)


All times are GMT -5. The time now is 05:48 AM.