X-Loop: help-debbugs@HIDDEN Subject: bug#33892: guix package --list-generations uses UTC and time-at-midnight for hour durations Resent-From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Fri, 28 Dec 2018 09:51:02 +0000 Resent-Message-ID: <handler.33892.B.15459906542522 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 33892 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 33892 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.15459906542522 (code B ref -1); Fri, 28 Dec 2018 09:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2018 09:50:54 +0000 Received: from localhost ([127.0.0.1]:39727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1gcon8-0000eb-2S for submit <at> debbugs.gnu.org; Fri, 28 Dec 2018 04:50:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <pelzflorian@HIDDEN>) id 1gcon6-0000eP-Ie for submit <at> debbugs.gnu.org; Fri, 28 Dec 2018 04:50:52 -0500 Received: from lists.gnu.org ([208.118.235.17]:59716) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>) id 1gcomx-0003YG-49 for submit <at> debbugs.gnu.org; Fri, 28 Dec 2018 04:50:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>) id 1gcomt-0008Ra-MB for bug-guix@HIDDEN; Fri, 28 Dec 2018 04:50:42 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>) id 1gcoUF-0006Xu-Jm for bug-guix@HIDDEN; Fri, 28 Dec 2018 04:31:45 -0500 Received: from pelzflorian.de ([5.45.111.108]:40436 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <pelzflorian@HIDDEN>) id 1gcoUF-0006Wp-8X for bug-guix@HIDDEN; Fri, 28 Dec 2018 04:31:23 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id EAE24360077 for <bug-guix@HIDDEN>; Fri, 28 Dec 2018 10:31:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1545989481; bh=audqoj5pCAqmyY33Lql6TtdNLo8ZTiyIW9wq9Hju81I=; h=Date:From:To:Subject; b=dummJbWWidZQhxmqhb/cN/q3gAXxC5rTqafaKGgVxjezghsn7CYeNP1uvelsBdTLw ChkgaTjQWkHESC2BbtbVX/k2nES5VD5UyUSUEIkSGBvZQTPOtjdjRvoI5gxkZoFV2q BRkYe57SKPj6iI56rqBn4uDWNUi4V4SZtxff2J3U= Date: Fri, 28 Dec 2018 10:31:20 +0100 From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN> Message-ID: <20181228093120.dufnb4o5py7o4mvl@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20180716 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.45.111.108 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.1 (-----) Hello Guix, I would expect guix package --list-generations=3D=E2=80=A6h to display generations from the past =E2=80=A6 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=3D"Dec 15 2018 13:04:16" +%s 1544875456 $ date +%s 1545989113 $ guix package --list-generations=3D$(((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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN> Subject: bug#33892: Acknowledgement (guix package --list-generations uses UTC and time-at-midnight for hour durations) Message-ID: <handler.33892.B.15459906542522.ack <at> debbugs.gnu.org> References: <20181228093120.dufnb4o5py7o4mvl@HIDDEN> X-Gnu-PR-Message: ack 33892 X-Gnu-PR-Package: guix Reply-To: 33892 <at> debbugs.gnu.org Date: Fri, 28 Dec 2018 09:51:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 33892 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 33892: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D33892 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.