GNU bug report logs -
#33892
guix package --list-generations uses UTC and time-at-midnight for hour durations
Previous Next
To reply to this bug, email your comments to 33892 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#33892
; Package
guix
.
(Fri, 28 Dec 2018 09:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"pelzflorian (Florian Pelz)" <pelzflorian <at> pelzflorian.de>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Fri, 28 Dec 2018 09:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello Guix,
I would expect guix package --list-generations=…h to display
generations from the past … hours, but apparently it displays
generations offset from UTC midnight (apparently not local time?) and
not the current time, since guix/ui.scm calls a procedure named
time-at-midnight.
In particular, when `guix package --list-generations` shows
Generation 38 Dec 15 2018 13:04:16 (current)
then I would expect
$ date --date="Dec 15 2018 13:04:16" +%s
1544875456
$ date +%s
1545989113
$ guix package --list-generations=$(((1545989113-1544875456)/3600+1))h
to display the current generation.
I think either the time for hours should not be computed from midnight
and should use local time for days/weeks. Alternatively, the
description in the manual should be adjusted.
Regards,
Florian
This bug report was last modified 6 years and 166 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.