Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #268078

Re: strange time problem with bullseye

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: strange time problem with bullseye
Date Tue, 05 Mar 2024 22:50:01 +0100
Message-ID <IeKPD-eFeG-1@gated-at.bofh.it> (permalink)
References <IeJ7b-eEa0-9@gated-at.bofh.it> <IeJ7b-eEa0-7@gated-at.bofh.it> <IeKPD-eFeG-3@gated-at.bofh.it>
X-Mailbox-Line From debian-user-request@lists.debian.org Tue Mar 5 21:45:01 2024
Old-Return-Path <greg@wooledge.org>
X-Amavis-Spam-Status No, score=-4.557 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RDNS_NONE=0.793, SARE_MLH_Stock10=1.66, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -4.6
Mail-Followup-To debian-user@lists.debian.org
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Mailing-List <debian-user@lists.debian.org> archive/latest/810005
List-ID <debian-user.lists.debian.org>
List-URL <https://lists.debian.org/debian-user/>
List-Archive https://lists.debian.org/msgid-search/ZeeSQbivd4GPpVrp@wooledge.org
Approved robomod@news.nic.it
Lines 59
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 5 Mar 2024 16:44:33 -0500
X-Original-Message-ID <ZeeSQbivd4GPpVrp@wooledge.org>
X-Original-References <TYSPR02MB83823B8127D624773C2DEE9BC5222@TYSPR02MB8382.apcprd02.prod.outlook.com> <Zed4E3lUviVHtOKo@wooledge.org> <TYSPR02MB838201C4EC38A4B592820D8FC5222@TYSPR02MB8382.apcprd02.prod.outlook.com>
Xref csiph.com linux.debian.user:268078

Show key headers only | View raw


On Tue, Mar 05, 2024 at 08:28:49PM +0800, hlyg wrote:
> Thank Greg Wooledge!
> 
> zhou@debian:~$ date
> Wed 06 Mar 2024 04:07:02 AM CST
> zhou@debian:~$ date -u
> Tue 05 Mar 2024 08:07:07 PM UTC
> 
> above is from deb11 for i386, it's correct

OK, and your time zone is 20 hours ahead of UTC, it appears.

> zhou@debian:~$ date
> Tue 05 Mar 2024 08:13:23 PM CST
> zhou@debian:~$ date -u
> Tue 05 Mar 2024 12:13:27 PM UTC
> 
> above is from deb11 for amd64, it's wrong, utc lag behind by 4 hours

Now this is odd-looking.  In this instance, your time zone is 4 hours
*behind* UTC instead of 20 hours ahead.  Which makes it off by exactly
one whole day.

Also, it *looks* like your i386 instance wrote UTC to the system clock,
and then your amd64 instance read that as local time.  You can see that
the 8:07:07 PM from the first instance is quite close to the 8:13:23 PM
from the second.

> Windows shall not cause problem, i rarely use Windows

The question isn't how often you use it, but whether you booted it in
between the two instances above.  Probably not, I suppose.

> i don't know if ntp is running, what's default configuration by deb11 amd64
> installer?

There is no "default".  Or rather, there are lots of defaults.  It's not
useful to ask about defaults.  Ask about what you have.

These are the packages that provide time-daemon on Debian 11:

systemd-timesyncd
openntpd
ntp
chrony

If one of those is installed and running, it should set your clock from
Internet sources (assuming it's configured reasonably, and you have
Internet access).

But more importantly, you need to check whether your Debian instances are
using local time or UTC for the real time clock, because it *looks* like
the i386 one is using UTC and the amd64 is not.

Check your /etc/adjtime files.

I'm also extremely curious why two different systems report "CST" with
two wildly different offsets from UTC.  What does
"ls -ld /etc/localtime" give on your systems?  Are they both the same?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: strange time problem with bullseye Greg Wooledge <greg@wooledge.org> - 2024-03-05 21:00 +0100
  Re: strange time problem with bullseye Greg Wooledge <greg@wooledge.org> - 2024-03-05 22:50 +0100
  Re: strange time problem with bullseye Jeffrey Walton <noloader@gmail.com> - 2024-03-06 04:10 +0100

csiph-web