![](https://seccdn.libravatar.org/avatar/150bb68600b6f4527c14c79e81e90f53.jpg?s=120&d=mm&r=g)
On Thu, 10 Sep 2020 18:48:58 +0200
Manfred Hollstein
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