Devuan bug report logs - #404
From A. V. Hwclock issue

Package: util-linux; Maintainer for util-linux is Devuan Developers <devuan-dev@lists.dyne.org>; Source for util-linux is src:util-linux.

Reported by: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>

Date: Fri, 28 Feb 2020 21:03:01 UTC

Severity: normal

Tags: invalid

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#404: From A. V. Hwclock issue
Reply-To: Mark Hindley <mark@hindley.org.uk>, 404@bugs.devuan.org
Resent-From: Mark Hindley <mark@hindley.org.uk>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: Daniel Reurich <daniel@centurion.net.nz>
X-Loop: owner@bugs.devuan.org
Resent-Date: Sun, 01 Mar 2020 18:33:01 +0000
Resent-Message-ID: <handler.404.B404.158308740430508@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: followup 404
X-Devuan-PR-Package: util-linux
X-Devuan-PR-Keywords: moreinfo
References: <20200301135138.GA11720@hindley.org.uk> <a84133fd-9c66-1728-624a-1d90a7a69872@gmail.com> <c1a2e08b-cc39-d0ac-6d70-04be87cbdc50@gmail.com>
Received: via spool by 404-submit@bugs.devuan.org id=B404.158308740430508
          (code B ref 404); Sun, 01 Mar 2020 18:33:01 +0000
Received: (at 404) by bugs.devuan.org; 1 Mar 2020 18:30:04 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sun, 01 Mar 2020 18:30:04 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 72674F60AEB
	for <404@bugs.devuan.org>; Sun,  1 Mar 2020 19:23:20 +0100 (CET)
Received: from apollo.hindleynet ([192.168.1.3] helo=apollo)
	by mx.hindley.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1j8TFH-00085g-6a; Sun, 01 Mar 2020 18:23:19 +0000
Received: from mark by apollo with local (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1j8TFG-0003yn-3t; Sun, 01 Mar 2020 18:23:18 +0000
Date: Sun, 1 Mar 2020 18:23:18 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
Cc: 404@bugs.devuan.org
Message-ID: <20200301182318.GC11720@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a84133fd-9c66-1728-624a-1d90a7a69872@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
On Sun, Mar 01, 2020 at 09:15:45PM +0300, Andrey Nikitushkin wrote:
> Hello, Mark!
> 
> I don't set the time in the BIOS manually. The time in the BIOS is set
> automatically when I restart my laptop with Debian. The time in the BIOS
> during a reboot is set based on the values received from hwclock, the time
> in the BIOS based on the hwclock information should be as localtime, not
> UTC. That's why I wrote about the problem with hwclock.
> 
> My /etc/adjtime:
> 
> 0.000000 1582921088 0.000000
> 1582921088
> LOCAL

Exactly. So you have it configured to save localtime to the hwclock.

Therefore, if you call 'hwclock --utc' you will get the wrong information,
becuase your hwclock is not set to UTC.

Please read hwclock(8). You should be using 'hwclock --localtime' or relying on
what is in /etc/adjtime.

Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Wed Apr 24 01:29:11 2024;