12.2 RC2: system time is always +2 hours after reboot

Hi all,

the time on my 12.2 RC2 system seems to be always +2 hours after a reboot. I already changed the setting to use a NTP server, but this does not seem to help.
I can set the correct time by opening the date/time-settings, choose a different NTP server, click “Apply” and then “OK”. But the next reboot, it will once again be wrong.

Any idea? Is this a bug? Do you need further info from me?

My machine is a dual boot system with Win7 + OpenSuse. Don’t know whether this is related.

Best regards

Wolfgang

There is a reported bug that sets the openSUSE 12.2 installation with “Hardware Clock Set to UTC” as checked, even if not and which is suggested to be unset for installation on systems that also run Windows. You can run YaST / System / Date & Time and uncheck the option and then select OK.

Thank You,

On 08/24/2012 05:16 PM, wknauf wrote:
>
> Hi all,
>
> the time on my 12.2 RC2 system seems to be always +2 hours after a
> reboot. I already changed the setting to use a NTP server, but this does
> not seem to help.
> I can set the correct time by opening the date/time-settings, choose a
> different NTP server, click “Apply” and then “OK”. But the next reboot,
> it will once again be wrong.
>
> Any idea? Is this a bug? Do you need further info from me?
>
> My machine is a dual boot system with Win7 + OpenSuse. Don’t know
> whether this is related.

Perhaps. Does this happen even when you boot Linux 2 times in a row, and fix the
time during the first boot? If so, then your problem is that the hardware clock
is not being set from the shutdown. You can probably work around this by setting
the time in the BIOS.

If it happens only when booting Linux following a bootup of Windows, then you
Linux clock settings are wrong. When you dual boot with Windows, you must not
check the “Hardware set to UTC” box.

On 2012-08-25 00:16, wknauf wrote:

> My machine is a dual boot system with Win7 + OpenSuse. Don’t know
> whether this is related.

Yes, it is.

Read this article,

SDB:Configuring the clock

and apply the changes to force W7 to use UTC. Alternatively, if you insist on using LOCAL for
the cmos clock, then you must edit the file “/etc/adjtime” and edit it manually to say “local”-
No, using yast for this will not work on 12.2, it is a known bug.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

The problem I saw was that the openSUSE 12.2 RC2 installation always sets UTC for the time, even if you uncheck the option to select LOCAL. After the installation was complete, I found that I could change the UTC/LOCAL time setting just fine. If you wanted to create this file from scratch, you could open up terminal and use one of these two commands:

For a UTC Setting Do this (recommended for users that don’t dual boot with Windows):

sudo echo -e "0.0 0 0.0
0
UTC" > /etc/adjtime

For a LOCAL Setting Do this (recommended for users that DO dual boot with Windows):

sudo echo -e "0.0 0 0.0
0
LOCAL" > /etc/adjtime

You most likely need to restart openSUSE for a manual edit of this file to work properly.

Thank You,

Many thanks for all the help. I tried to change to “Local time” using Yast and will keep an eye on it.

Best regards

Wolfgang

I was happy to help and just lets us know if you need anything else.

Thank You,

After a sequence of “boot windows”, followed by “boot suse”, I can confirm that it works (simply using Yast2, no editing of config files necessary)

Thanks for all your help once again!

Wolfgang

Seems that 12.2 final fixed this, because during installation, I saw that the UTC checkbox was unchecked.

Nope. It is not fixed -and- I will take the blame. Carlos told me to report it -but- it appeared that there were 3 or 4 reports on it already. We installed the latest and greatest ‘Public Release’ and our time is off by 5 hours. The ‘/etc/adjtime’ was not just wrong … it wasn’t there!! So, we created one and set the last line to LOCAL. Re-Booted and the time is correct. IF you do not have an adjtime in your etc dir then you will also have to create one… as follows

0.0 0 0.0
0
LOCAL -or- UTC … one or the other NOT both.

Take care,
Chuck

I have created a blog on this subject here everyone can read if they like:

What is UTC or GMT Time & a possible issue with openSUSE 12.2 and its solution. - Blogs - openSUSE Forums

Thank You,