Mailinglist Archive: opensuse (1048 mails)

< Previous Next >
Re: [opensuse] set "local time" in openSUSE 12.2 sticky
On Sat, Sep 08, 2012 at 01:11:27PM +0200, Per Jessen wrote:
Carlos E. R. wrote:

Hash: SHA256

On 2012-09-08 12:37, Per Jessen wrote:
Carlos E. R. wrote:

Edit /etc/adjtime and put local there. And before somebody asks, it
was reported in time on bugzilla.

My brandnew 12.2 system doesn't have /etc/adjtime, but it looks it is
created when you do "hwclock --systohc".

Do "hwclock --systohc --localtime" instead

Init-script boot.clock normally would do that, but afaict it isn't
part of the init-sequence. Doesn't look like systemd takes care of it
either, but I'm no expert.

I have forgotten the details, but the thing is the logic has been
changed. Previously there was some logic to adjust the cmos clock for
drift while powered off, by adding or subtracting some interval when
setting the clock on every boot. This was a cause of problems when the
cmos is set to local time and Windows has been booted in between (hey!
my clock is two hours off on every boot!), so the logic has been
disabled entirely if you use "local", it is only used for "utc".

So far, good.

As a side effect, they thought that /etc/adjtime (the file that stores
the drift adjustment) is no longer needed and is not created if you
use local - but this has undesired effects.

I guess /etc/adjtime isnt needed when you use NTP (the default).

On 12.2, tjhat is with latest hwclock and systemd the /etc/adjtime is the
reference of having LOCAL or UTC reference time in CMOS. For adjusting
the CMOS drift, the option --adjust is required.

Using LOCAL as reference without hard requirement is broken but OK if the
user is willingly to correct the day light switches twice a year before
the file systems are checked and mounted.


"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >