[opensuse-support] Where does Leap 15.2 store the UTC/local status of the bios clock?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, In YaST we can configure whether the BIOS clock stores the local time or the UTC time. In the past, this status was stored in /etc/sysconfig/{something}. It is not there now - where is it? Background: <https://en.opensuse.org/SDB:Configuring_the_clock> - -- Cheers Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCX1oFJhwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVC/0AoJUsm/E2tdwqgWgJ3TDR q/mhv9PBAJ9BNZOyp3tOrverPyal7HLdmuyTyA== =tW2K -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Thu, 10 Sep 2020, 12:51:18 +0200, Carlos E. R. wrote:
Hi,
In YaST we can configure whether the BIOS clock stores the local time or the UTC time. In the past, this status was stored in /etc/sysconfig/{something}. It is not there now - where is it?
Background: <https://en.opensuse.org/SDB:Configuring_the_clock>
tail -1 /etc/adjtime
Cheers
Carlos E. R.
Cheers. l8er manfred
On 10/09/2020 12.56, Manfred Hollstein wrote:
On Thu, 10 Sep 2020, 12:51:18 +0200, Carlos E. R. wrote:
Hi,
In YaST we can configure whether the BIOS clock stores the local time or the UTC time. In the past, this status was stored in /etc/sysconfig/{something}. It is not there now - where is it?
Background: <https://en.opensuse.org/SDB:Configuring_the_clock>
tail -1 /etc/adjtime
Thanks! Yes, and now that I remember, it was always there. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Hi, all -- ...and then Carlos E. R. said... % % On 10/09/2020 12.56, Manfred Hollstein wrote: % >On Thu, 10 Sep 2020, 12:51:18 +0200, Carlos E. R. wrote: % >> ... % >>the UTC time. In the past, this status was stored in % >>/etc/sysconfig/{something}. It is not there now - where is it? ... % > % >tail -1 /etc/adjtime % % Thanks! % % Yes, and now that I remember, it was always there. Y'all may recall my challenges with UTC vs local time on my 15.1 desktop. I haven't had a chance to go back to that, although I've definitely seen conflicting presentations on my machine. Just for fun, I checked my machine: davidtg@gezebel:~> cat /etc/SUSE-brand openSUSE VERSION = 15.1 davidtg@gezebel:~> tail -1 /etc/adjtime UTC davidtg@gezebel:~> cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern" I haven't messed with either of those files in my configuration attempts. It's curious to me that they differ. Should they? TIA again & HAND :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
Hi David, On Thu, 10 Sep 2020, 15:28:18 +0200, David T-G wrote:
Hi, all --
...and then Carlos E. R. said... % % On 10/09/2020 12.56, Manfred Hollstein wrote: % >On Thu, 10 Sep 2020, 12:51:18 +0200, Carlos E. R. wrote: % >> ... % >>the UTC time. In the past, this status was stored in % >>/etc/sysconfig/{something}. It is not there now - where is it? ... % > % >tail -1 /etc/adjtime % % Thanks! % % Yes, and now that I remember, it was always there.
Y'all may recall my challenges with UTC vs local time on my 15.1 desktop. I haven't had a chance to go back to that, although I've definitely seen conflicting presentations on my machine.
Just for fun, I checked my machine:
davidtg@gezebel:~> cat /etc/SUSE-brand openSUSE VERSION = 15.1 davidtg@gezebel:~> tail -1 /etc/adjtime UTC davidtg@gezebel:~> cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern"
I haven't messed with either of those files in my configuration attempts. It's curious to me that they differ. Should they?
TBH, I don't understand your question. To me your files look proper. What's your problem?
TIA again & HAND
:-D
Cheers. l8er manfred
Manfred, et al -- ...and then Manfred Hollstein said... % % On Thu, 10 Sep 2020, 15:28:18 +0200, David T-G wrote: % > ... % > Just for fun, I checked my machine: % > % > davidtg@gezebel:~> cat /etc/SUSE-brand % > openSUSE % > VERSION = 15.1 % > davidtg@gezebel:~> tail -1 /etc/adjtime % > UTC % > davidtg@gezebel:~> cat /etc/sysconfig/clock % > DEFAULT_TIMEZONE="US/Eastern" % > % > I haven't messed with either of those files in my configuration attempts. % > It's curious to me that they differ. Should they? % % TBH, I don't understand your question. To me your files look proper. % What's your problem? One of them lists UTC; the other list US/Eastern. I'm trying to get the machine to think in UTC but present my user experience in US/Eastern -- and another's experience in US/Pacific, or any other time zone. So far, the results have been mixed :-( Thanks again! :-D -- David T-G See http://justpickone.org/davidtg/email/ See http://justpickone.org/davidtg/tofu.txt -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 10/09/2020 16.56, David T-G wrote:
Manfred, et al --
...and then Manfred Hollstein said... % % On Thu, 10 Sep 2020, 15:28:18 +0200, David T-G wrote: % > ... % > Just for fun, I checked my machine: % > % > davidtg@gezebel:~> cat /etc/SUSE-brand % > openSUSE % > VERSION = 15.1 % > davidtg@gezebel:~> tail -1 /etc/adjtime % > UTC % > davidtg@gezebel:~> cat /etc/sysconfig/clock % > DEFAULT_TIMEZONE="US/Eastern" % > % > I haven't messed with either of those files in my configuration attempts. % > It's curious to me that they differ. Should they? % % TBH, I don't understand your question. To me your files look proper. % What's your problem?
One of them lists UTC; the other list US/Eastern. I'm trying to get the machine to think in UTC but present my user experience in US/Eastern -- and another's experience in US/Pacific, or any other time zone. So far, the results have been mixed :-(
Thanks again!
:-D
You can cat the whole file if you wish: cer@Telcontar:~> cat /etc/adjtime -0.660032 1599685540 0.000000 1599685540 UTC cer@Telcontar:~> cer@Telcontar:~> ssh -X cer@Isengard.valinor Last login: Fri Sep 4 00:14:23 2020 from 192.168.1.14 Have a lot of fun... cer@Isengard:~> cat /etc/adjtime 0.000000 1586713427 0.000000 1586713427 UTC cer@Isengard:~> exit logout Connection to isengard.valinor closed. cer@Telcontar:~> ssh -X cer@minas-tirith.valinor Last login: Wed Sep 9 14:57:14 2020 from 192.168.1.135 Have a lot of fun... cer@minas-tirith:~> cat /etc/adjtime 0.260298 1598374349 0.000000 1598374349 UTC cer@minas-tirith:~> Having UTC is typical on machines that only boot Linux, while "LOCAL" is typical on machines that doubleboot to Windows. However, there is a trick explained on the link in the OP on how to change Windows to use UTC as well. There have been requests to ask M$ to switch to UTC as default, but so far, they haven't. There is a hidden config, and at least it works. We think :-) -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Hi David, On Thu, 10 Sep 2020, 16:56:12 +0200, David T-G wrote:
Manfred, et al --
...and then Manfred Hollstein said... % % On Thu, 10 Sep 2020, 15:28:18 +0200, David T-G wrote: % > ... % > Just for fun, I checked my machine: % > % > davidtg@gezebel:~> cat /etc/SUSE-brand % > openSUSE % > VERSION = 15.1 % > davidtg@gezebel:~> tail -1 /etc/adjtime % > UTC % > davidtg@gezebel:~> cat /etc/sysconfig/clock % > DEFAULT_TIMEZONE="US/Eastern" % > % > I haven't messed with either of those files in my configuration attempts. % > It's curious to me that they differ. Should they? % % TBH, I don't understand your question. To me your files look proper. % What's your problem?
One of them lists UTC; the other list US/Eastern. I'm trying to get the machine to think in UTC but present my user experience in US/Eastern -- and another's experience in US/Pacific, or any other time zone. So far, the results have been mixed :-(
Mixed in what regard? UTC means the system's hardware clock (which you can control via the BIOS) is running in UTC mode, i.e. Zulu time == +-0 hrs. The TIMEZONE describes your local environment which in your case is Zulu time +6 hrs. US/Pacific would be Zulu time +9 hrs. Does running "date" produce your local time? Here are some examples how you can control date's output (I have added the output on my local system as an example): : Print Coordinated Universal Time (UTC) $ date -u Thu Sep 10 16:48:17 UTC 2020 : Print current time at your local area, i.e. your TIMEZONE: $ date Thu Sep 10 18:48:27 CEST 2020 : Print current time at another area: $ env TZ=US/Pacific date Thu Sep 10 09:48:37 PDT 2020
Thanks again!
:-D
Hope this makes things clearer. Cheers. l8er manfred
On Thu, 10 Sep 2020 18:48:58 +0200 Manfred Hollstein <mhollstein@t-online.de> wrote:
Hi David,
On Thu, 10 Sep 2020, 16:56:12 +0200, David T-G wrote:
Manfred, et al --
...and then Manfred Hollstein said... % % On Thu, 10 Sep 2020, 15:28:18 +0200, David T-G wrote: % > ... % > Just for fun, I checked my machine: % > % > davidtg@gezebel:~> cat /etc/SUSE-brand % > openSUSE % > VERSION = 15.1 % > davidtg@gezebel:~> tail -1 /etc/adjtime % > UTC % > davidtg@gezebel:~> cat /etc/sysconfig/clock % > DEFAULT_TIMEZONE="US/Eastern" % > % > I haven't messed with either of those files in my configuration attempts. % > It's curious to me that they differ. Should they? % % TBH, I don't understand your question. To me your files look proper. % What's your problem?
One of them lists UTC; the other list US/Eastern. I'm trying to get the machine to think in UTC but present my user experience in US/Eastern -- and another's experience in US/Pacific, or any other time zone. So far, the results have been mixed :-(
Mixed in what regard? UTC means the system's hardware clock (which you can control via the BIOS) is running in UTC mode, i.e. Zulu time == +-0 hrs. The TIMEZONE describes your local environment which in your case is Zulu time +6 hrs. US/Pacific would be Zulu time +9 hrs. Does running "date" produce your local time?
Here are some examples how you can control date's output (I have added the output on my local system as an example):
: Print Coordinated Universal Time (UTC) $ date -u Thu Sep 10 16:48:17 UTC 2020 : Print current time at your local area, i.e. your TIMEZONE: $ date Thu Sep 10 18:48:27 CEST 2020 : Print current time at another area: $ env TZ=US/Pacific date Thu Sep 10 09:48:37 PDT 2020
But those date commands print the date in a user's environment. Which can be changed as you demonstrate. And which can be different for every user. /etc/sysconfig/clock presumably says something about the system environment. Something different. Quite what, I'm not sure, TBH. FWIW on my system: $ cat /etc/sysconfig/clock TIMEZONE="Europe/London" DEFAULT_TIMEZONE="US/Eastern" Now why would I in the UK have a line that says something about US time on a system built in Europe?
Thanks again!
:-D
Hope this makes things clearer.
Cheers.
l8er manfred -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 10/09/2020 21.34, Dave Howorth wrote:
On Thu, 10 Sep 2020 18:48:58 +0200 Manfred Hollstein <> wrote:
Hi David,
On Thu, 10 Sep 2020, 16:56:12 +0200, David T-G wrote:
Manfred, et al --
Mixed in what regard? UTC means the system's hardware clock (which you can control via the BIOS) is running in UTC mode, i.e. Zulu time == +-0 hrs. The TIMEZONE describes your local environment which in your case is Zulu time +6 hrs. US/Pacific would be Zulu time +9 hrs. Does running "date" produce your local time?
Here are some examples how you can control date's output (I have added the output on my local system as an example):
: Print Coordinated Universal Time (UTC) $ date -u Thu Sep 10 16:48:17 UTC 2020 : Print current time at your local area, i.e. your TIMEZONE: $ date Thu Sep 10 18:48:27 CEST 2020 : Print current time at another area: $ env TZ=US/Pacific date Thu Sep 10 09:48:37 PDT 2020
But those date commands print the date in a user's environment. Which can be changed as you demonstrate. And which can be different for every user.
/etc/sysconfig/clock presumably says something about the system environment. Something different. Quite what, I'm not sure, TBH.
No, it doesn't. It only defines the default for users. The system clock in every Unix and Linux machine is a "variant" of UTC time. Actually, it simply counts seconds since the Epoch, a point in time. When the time is printed, the time is converted to whatever that user local time is. <https://en.wikipedia.org/wiki/Unix_time>
FWIW on my system:
$ cat /etc/sysconfig/clock TIMEZONE="Europe/London" DEFAULT_TIMEZONE="US/Eastern"
Now why would I in the UK have a line that says something about US time on a system built in Europe?
I think that something in that file is obsolete. On a newly installed Leap 15.2 machine, I get: /media/ExtMain/etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern" Which I know is wrong, I definitely said in YaST during installation to use Spain/Madrid time, ie, CEST. /etc/localtime is a symlink that points to /usr/share/zoneinfo/Europe/Madrid and that is what the system actually uses. I think you found a bug. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On 9/10/20 8:28 AM, David T-G wrote:
davidtg@gezebel:~> tail -1 /etc/adjtime UTC
% tail -1 /etc/adjtime UTC
davidtg@gezebel:~> cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern"
% cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern" I'll note that I'm actually on central time % ls -l /etc/localtime lrwxrwxrwx 1 root root 35 Feb 23 2020 /etc/localtime -> /usr/share/zoneinfo/America/Chicago I should add that this is with Leap 15.2.
I haven't messed with either of those files in my configuration attempts. It's curious to me that they differ. Should they?
The files are not related, except that they deal with time settings. "/etc/adjtime" is for the hardware clock settings. And "/etc/sysconfig/clock" is presumably supposed to be related to timezone is used with "date" and similar commands. But I don't think that file is actually used. It looks to be a residue from earlier releases. Checking with "rpm", the file does not appear to be owned by any package. If I use Yast Date and Time, it shows me as in Central time (which is correct), so it is not using that wrong value in "/etc/sysconfig/clock". -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 11/09/2020 03.33, Neil Rickert wrote:
On 9/10/20 8:28 AM, David T-G wrote:
davidtg@gezebel:~> tail -1 /etc/adjtime UTC
% tail -1 /etc/adjtime UTC
davidtg@gezebel:~> cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern"
% cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern"
I'll note that I'm actually on central time
% ls -l /etc/localtime lrwxrwxrwx 1 root root 35 Feb 23 2020 /etc/localtime -> /usr/share/zoneinfo/America/Chicago
I should add that this is with Leap 15.2.
I think it is a bug.
I haven't messed with either of those files in my configuration attempts. It's curious to me that they differ. Should they?
The files are not related, except that they deal with time settings. "/etc/adjtime" is for the hardware clock settings. And "/etc/sysconfig/clock" is presumably supposed to be related to timezone is used with "date" and similar commands. But I don't think that file is actually used. It looks to be a residue from earlier releases.
Probably.
Checking with "rpm", the file does not appear to be owned by any package. If I use Yast Date and Time, it shows me as in Central time (which is correct), so it is not using that wrong value in "/etc/sysconfig/clock".
I think it uses /etc/localtime. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
On Thu, 10 Sep 2020 20:33:50 -0500 Neil Rickert <nrickert@ameritech.net> wrote:
On 9/10/20 8:28 AM, David T-G wrote:
davidtg@gezebel:~> tail -1 /etc/adjtime UTC
% tail -1 /etc/adjtime UTC
davidtg@gezebel:~> cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern"
% cat /etc/sysconfig/clock DEFAULT_TIMEZONE="US/Eastern"
I'll note that I'm actually on central time
% ls -l /etc/localtime lrwxrwxrwx 1 root root 35 Feb 23 2020 /etc/localtime -> /usr/share/zoneinfo/America/Chicago
I should add that this is with Leap 15.2.
I haven't messed with either of those files in my configuration attempts. It's curious to me that they differ. Should they?
The files are not related, except that they deal with time settings. "/etc/adjtime" is for the hardware clock settings. And "/etc/sysconfig/clock" is presumably supposed to be related to timezone is used with "date" and similar commands. But I don't think that file is actually used. It looks to be a residue from earlier releases. Checking with "rpm", the file does not appear to be owned by any package. If I use Yast Date and Time, it shows me as in Central time (which is correct), so it is not using that wrong value in "/etc/sysconfig/clock".
date is run in a user's environment, so can't have anything to do with a systemwide file in /etc, I suggest. Is anybody brave enough to delete the file (or rename it) and see if anything breaks? -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 9/11/20 7:35 AM, Dave Howorth wrote:
Is anybody brave enough to delete the file (or rename it) and see if anything breaks?
It doesn't take much bravery. But it would only prove that the file is not used by anything that I am doing. I checked out files in "/etc/sysconfig" using: cd /etc/sysconfig for file in * do rpm --query --file $file && echo FILE=$file done It turns out that most files there are not owned by any package. But some of them are surely used. I've reported this as bug 1176457 which I set as an enhancement request to fix the problem. Somebody needs to clean out the accumulated cobwebs. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Fri, 11 Sep 2020, 18:30:24 +0200, Neil Rickert wrote:
On 9/11/20 7:35 AM, Dave Howorth wrote:
Is anybody brave enough to delete the file (or rename it) and see if anything breaks?
It doesn't take much bravery. But it would only prove that the file is not used by anything that I am doing.
I checked out files in "/etc/sysconfig" using:
cd /etc/sysconfig for file in * do rpm --query --file $file && echo FILE=$file done
It turns out that most files there are not owned by any package. But some of them are surely used.
I've reported this as bug 1176457 which I set as an enhancement request to fix the problem. Somebody needs to clean out the accumulated cobwebs.
All files in /etc/sysconfig come from /usr/share/fillup-templates/ with a "sysconfig." prefix (on older systems it was /var/adm/fillup-templates/) and they are generated during installation of their packages. So you could find out where those files belong to by running "rpm -qf /usr/share/fillup-templates/sysconfig.*". BTW, there is no "sysconfig.clock" in /usr/share/fillup-templates/ anymore, so it really is a zombie from older installations. Interestingly I installed my 15.2 system freshly during its Beta phase, so it's surprising that the /etc/sysconfig/clock file is still around... Cheers. l8er manfred
11.09.2020 20:37, Manfred Hollstein пишет:
/usr/share/fillup-templates/sysconfig.*". BTW, there is no "sysconfig.clock" in /usr/share/fillup-templates/ anymore, so it really is a zombie from older installations.
It is written by YaST country module with US/Eastern being default if there is no mapping from current language code to timezone. It is really "default"; current sytsem timezone is taken from /etc/localtime.
On Fri, 11 Sep 2020 22:49:57 +0300 Andrei Borzenkov <arvidjaar@gmail.com> wrote:
11.09.2020 20:37, Manfred Hollstein пишет:
/usr/share/fillup-templates/sysconfig.*". BTW, there is no "sysconfig.clock" in /usr/share/fillup-templates/ anymore, so it really is a zombie from older installations.
It is written by YaST country module with US/Eastern being default if there is no mapping from current language code to timezone. It is really "default"; current sytsem timezone is taken from /etc/localtime.
Sorry, but exactly which module do you mean? If I type 'country' into the search box in the YaST GUI it shows me 'System Keyboard Layout' and 'Language'. The first doesn't seem relevant and the second explicitly says that 'These settings are written into the file /etc/sysconfig/language.' -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (6)
-
Andrei Borzenkov
-
Carlos E. R.
-
Dave Howorth
-
David T-G
-
Manfred Hollstein
-
Neil Rickert