Mailinglist Archive: opensuse (1002 mails)
| < Previous | Next > |
[opensuse] Re: chrony and hwclock
- From: Joachim Schrod <jschrod@xxxxxxx>
- Date: Tue, 19 Jul 2011 16:49:10 +0200
- Message-id: <j045h6$pc9$1@dough.gmane.org>
Roger Oberholtzer wrote:
No.
The TIMEZONE value is only documentation by openSUSE what time zone
was set up during installation.
During actual operation, /etc/localtime is used. More relevant,
during boot & shutdown, *ONLY* /etc/localtime is used, since no TZ
environment variable exists then.
You can verify my statement by calling
strace hwclock -r >hwclock.log 2>&1
and examining the log file. There you will see that /etc/localtime
is opened for reading.
That's why I posted the 5 action steps which include the test if
/etc/localtime has the correct value.
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
On Tue, 2011-07-19 at 07:40 -0400, Anton Aylward wrote:
Roger Oberholtzer said the following on 07/19/2011 06:45 AM:
Maybe I should have written that like this (which is what I meant):
2. The hardware is in localtime when the system is booted, and there is
a timezone specified that specifies how this differs from UTC time.
That might be your problem.
If the setup assumes you scenario #1 but the hardware is actually in #2
that could account for the offset you see.
It would. But I have scenario 1 through and through. And I think the
system is set up that way in that in /etc/sysconfig/clock I have:
HWCLOCK="-u"
TIMEZONE="Europe/Stockholm"
Which I think it the only place this is set. All else derives from this.
No.
The TIMEZONE value is only documentation by openSUSE what time zone
was set up during installation.
During actual operation, /etc/localtime is used. More relevant,
during boot & shutdown, *ONLY* /etc/localtime is used, since no TZ
environment variable exists then.
You can verify my statement by calling
strace hwclock -r >hwclock.log 2>&1
and examining the log file. There you will see that /etc/localtime
is opened for reading.
That's why I posted the 5 action steps which include the test if
/etc/localtime has the correct value.
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jschrod@xxxxxxx
Roedermark, Germany
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |