On 2011-01-06 20:06, tk83 wrote:
starting note: you should, or might, have changed the time, during the trip
and later, only for the user. This is done in the desktop, or in console
(not as root).
> hcvv;2274496 Wrote:
>> Do you have a multiboot system with an MS Windows as partner?
> Yes, I have Windows 7 on this laptop also. In the first reboot after I
> got back to Germany Windows 7 had the same problem - clock 10 hours
> behind, but after I set the clock properly (in Windows) Windows doesn’t
> have this problem anymore.
> I don’t think Windows is the cause of the problem in Linux either,
> since the problem occurs when I reboot from Linux back into Linux, with
> no loading of Windows inbetween.
Yes, and no. It has some influence. I’ll explain later.
>> And what did you choose in YaST fore the setting: Set hardware clock to
>> GMT/Local time?
> Where is this in the YAST GUI - I can’t see it in the ‘Date and Time’
A click box.
> I do however have hardware clock set to local time in
That’s the same thing.
> I’ve also manually applied this setting (hwclock
> --localtime) a couple of times to see if this makes a difference, but so
> far no luck.
Good. You are near the mark, but you need something else.
> My /etc/sysconfig/clock:
> I don’t understand why the problem occurs, as when I check the time in
> the BIOS setup screens as the system reboots the clock there is always
> correct. It’s just Linux that’s for some reason setting itself back 10
> hours from this correct time.
I think I do >:-)
Ok, get the clock to display correctly your preferred way. Check that root
has the correct time setting by using, in a terminal, the command “date”.
Check that the cmos clock is correct by using hwclock.
And then, the untold trick: delete “/etc/adjtime”!
This file has saved that you once shifted the clock 10 hours, and is
replaying the change on each boot. This is what it is for, it is thinking
that your clock is too fast or slow, and adjusting automatically for it.
So, delete that file, then redo the hwclock --localtime --systohc command
to set the cmos clock and recreate the adjtime correctly.
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)