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>;

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>

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, Daniel Reurich <daniel@centurion.net.nz>:
bug#404; Package util-linux. (Fri, 28 Feb 2020 21:03:01 GMT) (full text, mbox, link).


Acknowledgement sent to Andrey Nikitushkin <a.v.nikitushkin@gmail.com>:
New bug report received and forwarded. Copy sent to Daniel Reurich <daniel@centurion.net.nz>. (Fri, 28 Feb 2020 21:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
To: submit@bugs.devuan.org
Subject: From A. V. Hwclock issue
Date: Fri, 28 Feb 2020 23:50:12 +0300
[Message part 1 (text/plain, inline)]
Package: util-linux
Version: 2.33.1

Please see: https://dev1galaxy.org/viewtopic.php?id=3346

Hello, friends!

I have the following situation in Devuan 2 and Devuan 3:

|hwclock --utc 2020-02-29 02:15:50.889268+03:00 hwclock --localtime 
2020-02-28 23:16:54.311448+03:00|

*This is wrong!!!*
Must be:

|hwclock --utc 2020-02-28 20:15:50.889268+03:00 hwclock --localtime 
2020-02-28 23:16:54.311448+03:00|

After a reboot, the BIOS sets the time to UTC, which should be localtime.

*Please report this issue to the hwclock developers.*

Thanks!

-- 
============================================
С наилучшими пожеланиями, Никитушкин Андрей!
Тел.(сот.): +79063975544
============================================

[Message part 2 (text/html, inline)]

Information forwarded to devuan-bugs@lists.dyne.org, Daniel Reurich <daniel@centurion.net.nz>:
bug#404; Package util-linux. (Sun, 01 Mar 2020 14:03:02 GMT) (full text, mbox, link).


Message #8 received at 404@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 404@bugs.devuan.org, Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
Subject: Re: From A. V. Hwclock issue
Date: Sun, 1 Mar 2020 13:51:38 +0000
Control: tags -1 moreinfo

Andrey,

Thanks for this.

On Fri, 28 Feb 2020 23:50:12 +0300 Andrey Nikitushkin <a.v.nikitushkin@gmail.com> wrote:
> Package: util-linux
> Version: 2.33.1
> 
> Please see: https://dev1galaxy.org/viewtopic.php?id=3346
> 
> Hello, friends!
> 
> I have the following situation in Devuan 2 and Devuan 3:
> 
> |hwclock --utc 2020-02-29 02:15:50.889268+03:00
> hwclock --localtime 2020-02-28 23:16:54.311448+03:00|
> 
> *This is wrong!!!*
> Must be:
> 
> |hwclock --utc 2020-02-28 20:15:50.889268+03:00
> hwclock --localtime 2020-02-28 23:16:54.311448+03:00|

I think you might be misunderstanding here.

As stated in hwclock(8), the --utc option is not to print the UTC time but to
tell hwclock that the BIOS clock is set to UTC. This can be used to override
what is in /etc/adjtime.

What is your BIOS clock set to?

What do you have in /etc/adjtime?

Thanks

Mark

Added tag(s) moreinfo. Request was from Mark Hindley <mark@hindley.org.uk> to 404-submit@bugs.devuan.org. (Sun, 01 Mar 2020 14:03:05 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, Daniel Reurich <daniel@centurion.net.nz>:
bug#404; Package util-linux. (Sun, 01 Mar 2020 18:33:01 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to Daniel Reurich <daniel@centurion.net.nz>. (Sun, 01 Mar 2020 18:33:04 GMT) (full text, mbox, link).


Message #15 received at 404@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
Cc: 404@bugs.devuan.org
Subject: Re: From A. V. Hwclock issue
Date: Sun, 1 Mar 2020 18:23:18 +0000
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

Information forwarded to devuan-bugs@lists.dyne.org, Daniel Reurich <daniel@centurion.net.nz>:
bug#404; Package util-linux. (Sun, 01 Mar 2020 19:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to Daniel Reurich <daniel@centurion.net.nz>. (Sun, 01 Mar 2020 19:03:04 GMT) (full text, mbox, link).


Message #20 received at 404@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
Cc: 404@bugs.devuan.org
Subject: Re: From A. V. Hwclock issue
Date: Sun, 1 Mar 2020 18:40:00 +0000
On Sun, Mar 01, 2020 at 09:30:41PM +0300, Andrey Nikitushkin wrote:
> Mark!
> 
> 1. I didn't set up anything myself!
> 
> 2. The error is with hwclock, because UTC should not be +03:00. UTC must be
> +00:00!!!

I am sorry, but you are misunderstanding.

'hwclock --utc' does NOT mean print the hclock time in UTC equivalent.
It means print the hwclock time and I have the hwclock SET to UTC.

Mark


Information forwarded to devuan-bugs@lists.dyne.org, Daniel Reurich <daniel@centurion.net.nz>:
bug#404; Package util-linux. (Sun, 01 Mar 2020 19:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to Daniel Reurich <daniel@centurion.net.nz>. (Sun, 01 Mar 2020 19:03:08 GMT) (full text, mbox, link).


Message #25 received at 404@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
Cc: 404@bugs.devuan.org
Subject: Re: From A. V. Hwclock issue
Date: Sun, 1 Mar 2020 18:44:47 +0000
On Sun, Mar 01, 2020 at 06:40:00PM +0000, Mark Hindley wrote:
> > 2. The error is with hwclock, because UTC should not be +03:00. UTC must be
> > +00:00!!!
> 
> I am sorry, but you are misunderstanding.
> 
> 'hwclock --utc' does NOT mean print the hclock time in UTC equivalent.
> It means print the hwclock time and I have the hwclock SET to UTC.

Please read hwclock(8). In particular:

 --localtime
 -u, --utc
        Indicate which timescale the Hardware Clock is set to.

 -r, --show
 --get
        Read  the  Hardware  Clock  and print the time on standard output.  The
 	time shown is always in local time,
 	even if you keep your Hardware Clock in UTC.

Mark

Information forwarded to devuan-bugs@lists.dyne.org, Daniel Reurich <daniel@centurion.net.nz>:
bug#404; Package util-linux. (Mon, 02 Mar 2020 09:33:01 GMT) (full text, mbox, link).


Acknowledgement sent to Andrey Nikitushkin <a.v.nikitushkin@gmail.com>:
Extra info received and forwarded to list. Copy sent to Daniel Reurich <daniel@centurion.net.nz>. (Mon, 02 Mar 2020 09:33:03 GMT) (full text, mbox, link).


Message #30 received at 404@bugs.devuan.org (full text, mbox, reply):

From: Andrey Nikitushkin <a.v.nikitushkin@gmail.com>
To: Mark Hindley <mark@hindley.org.uk>
Subject: Re: From A. V. Hwclock issue
Date: Sun, 1 Mar 2020 21:55:02 +0300
I'm not a tolerant person and I don't really dislike psychos. I told you 
earlier that UTC is +00:00, not +03: 00. I'm sorry you don't understand 
this, and you're arguing with me. Don't write to me again, Troll. I 
won't answer you. I repeat again: I don't LIKE PSYCHOS! I FUCK THEM!

===============================================================================================

On 3/1/20 9:44 PM, Mark Hindley wrote:
> On Sun, Mar 01, 2020 at 06:40:00PM +0000, Mark Hindley wrote:
>>> 2. The error is with hwclock, because UTC should not be +03:00. UTC must be
>>> +00:00!!!
>> I am sorry, but you are misunderstanding.
>>
>> 'hwclock --utc' does NOT mean print the hclock time in UTC equivalent.
>> It means print the hwclock time and I have the hwclock SET to UTC.
> Please read hwclock(8). In particular:
>
>   --localtime
>   -u, --utc
>          Indicate which timescale the Hardware Clock is set to.
>
>   -r, --show
>   --get
>          Read  the  Hardware  Clock  and print the time on standard output.  The
>   	time shown is always in local time,
>   	even if you keep your Hardware Clock in UTC.
>
> Mark

-- 
============================================
С наилучшими пожеланиями, Никитушкин Андрей!
Тел.(сот.): +79063975544
============================================


Message #31 received at 404-quiet@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: 404-quiet@bugs.devuan.org
Subject: Re: From A. V. Hwclock issue
Date: Mon, 2 Mar 2020 10:17:16 +0000
Control: tags -1 invalid
Control: found -1
Control: close -1

Added tag(s) invalid. Request was from Mark Hindley <mark@hindley.org.uk> to 404-quiet@bugs.devuan.org. (Mon, 02 Mar 2020 10:33:01 GMT) (full text, mbox, link).


Marked bug as done Request was from Mark Hindley <mark@hindley.org.uk> to 404-quiet@bugs.devuan.org. (Mon, 02 Mar 2020 10:33:01 GMT) (full text, mbox, link).


Notification sent to Andrey Nikitushkin <a.v.nikitushkin@gmail.com>:
bug acknowledged by developer. (Mon, 02 Mar 2020 10:33:01 GMT) (full text, mbox, link).


Removed tag(s) moreinfo. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. (Mon, 02 Mar 2020 10:48:02 GMT) (full text, mbox, link).


No longer marked as found in versions 2.33.1. Request was from Mark Hindley <mark@hindley.org.uk> to control@bugs.devuan.org. (Mon, 02 Mar 2020 10:48:02 GMT) (full text, mbox, link).


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: Mon Jun 1 19:57:24 2020;