From unknown Thu Sep 11 13:39:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#37060: bug in date / coreutils Resent-From: jensbaltrusch@vfemail.net Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 17 Aug 2019 03:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37060 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 37060@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.156601306131676 (code B ref -1); Sat, 17 Aug 2019 03:38:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2019 03:37:41 +0000 Received: from localhost ([127.0.0.1]:55243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hypXB-0008Ep-Cq for submit@debbugs.gnu.org; Fri, 16 Aug 2019 23:37:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:51441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hypSh-00088G-LE for submit@debbugs.gnu.org; Fri, 16 Aug 2019 23:33:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hypSg-0008QL-CQ for bug-coreutils@gnu.org; Fri, 16 Aug 2019 23:33:03 -0400 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,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hypSf-00080n-AS for bug-coreutils@gnu.org; Fri, 16 Aug 2019 23:33:02 -0400 Received: from nl101-3.vfemail.net ([149.210.219.33]:34615) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hypSf-000809-1I for bug-coreutils@gnu.org; Fri, 16 Aug 2019 23:33:01 -0400 Received: (qmail 62819 invoked from network); 17 Aug 2019 03:32:23 -0000 Received: by simscan 1.4.0 ppid: 62813, pid: 62817, t: 0.0047s scanners:none Received: from unknown (HELO bG9jYWxob3N0QDE1NjYwMTI3NDM=) (amVuc2JhbHRydXNjaEB2ZmVtYWlsLm5ldEAxNTY2MDEyNzQz@MTkyLjE2OC4xLjE5MkAxNTY2MDEyNzQz) by nl101.vfemail.net with ESMTPA; 17 Aug 2019 03:32:23 -0000 Received: from [171.115.77.78] ([171.115.77.78]) by vfemail.net (Horde Framework) with HTTPS; Sat, 17 Aug 2019 03:32:58 +0000 Date: Sat, 17 Aug 2019 03:32:58 +0000 Message-ID: <20190817033258.Horde.149rp-rr2mwABVSe1IjpHpx@vfemail.net> From: jensbaltrusch@vfemail.net User-Agent: Horde Application Framework 5 X-VFEmail-Originating-IP: MTcxLjExNS43Ny43OA== X-VFEmail-AntiSpam: Notify admin@vfemail.net of any spam, and include VFEmail headers Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 149.210.219.33 X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Fri, 16 Aug 2019 23:37:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I believe there is a bug in the date utility. My system is set to Berlin time, now daylight saving time. When I put in date --date='TZ="Europe/Berlin" now' I get correctly Sat 17 Aug 05:11:18 CEST 2019 However, putting in   date --date='TZ="America/Los_Angeles" now' yields Sat 17 Aug 14:12:03 CEST 2019 which is nonsense. Also, putting in date --date='TZ="Asia/Shanghai" now' giving Fri 16 Aug 23:13:36 CEST 2019 which is definitely wrong, as I am currently in China where the sun is up and shining. I get from date --version the following: date (GNU coreutils) 8.23 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie. My system is Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux I get the same kind of error using 'today' instead of 'now', or 'tomorrow', '1 hour ago', etc. In case you need further information, please do not hesitate to contact me. Best, Jens Baltrusch From unknown Thu Sep 11 13:39:50 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: jensbaltrusch@vfemail.net Subject: bug#37060: closed (Re: bug#37060: bug in date / coreutils) Message-ID: References: <8051f02c-c976-1525-3b41-3b9b9621643a@cs.ucla.edu> <20190817033258.Horde.149rp-rr2mwABVSe1IjpHpx@vfemail.net> X-Gnu-PR-Message: they-closed 37060 X-Gnu-PR-Package: coreutils Reply-To: 37060@debbugs.gnu.org Date: Sat, 17 Aug 2019 05:21:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1566019263-9303-1" This is a multi-part message in MIME format... ------------=_1566019263-9303-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #37060: bug in date / coreutils which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 37060@debbugs.gnu.org. --=20 37060: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37060 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1566019263-9303-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 37060-done) by debbugs.gnu.org; 17 Aug 2019 05:20:09 +0000 Received: from localhost ([127.0.0.1]:55261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyr8K-0002O4-Sl for submit@debbugs.gnu.org; Sat, 17 Aug 2019 01:20:09 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyr8J-0002NV-9Q for 37060-done@debbugs.gnu.org; Sat, 17 Aug 2019 01:20:08 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C8C981626F2; Fri, 16 Aug 2019 22:20:00 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id GIvcSnFSqHqs; Fri, 16 Aug 2019 22:20:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2CBB5162746; Fri, 16 Aug 2019 22:20:00 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dJIVyvLUCUep; Fri, 16 Aug 2019 22:20:00 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 07D161626F2; Fri, 16 Aug 2019 22:20:00 -0700 (PDT) Subject: Re: bug#37060: bug in date / coreutils To: Jens Baltrusch References: <20190817033258.Horde.149rp-rr2mwABVSe1IjpHpx@vfemail.net> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <8051f02c-c976-1525-3b41-3b9b9621643a@cs.ucla.edu> Date: Fri, 16 Aug 2019 22:19:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190817033258.Horde.149rp-rr2mwABVSe1IjpHpx@vfemail.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37060-done Cc: 37060-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) I think that bug was fixed in 2017, and your coreutils version 8.23 predates the fix. I suggest upgrading to the current version (8.31) of coreutils, as 8.23 is pretty old anyway. ------------=_1566019263-9303-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Aug 2019 03:37:41 +0000 Received: from localhost ([127.0.0.1]:55243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hypXB-0008Ep-Cq for submit@debbugs.gnu.org; Fri, 16 Aug 2019 23:37:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:51441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hypSh-00088G-LE for submit@debbugs.gnu.org; Fri, 16 Aug 2019 23:33:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hypSg-0008QL-CQ for bug-coreutils@gnu.org; Fri, 16 Aug 2019 23:33:03 -0400 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,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hypSf-00080n-AS for bug-coreutils@gnu.org; Fri, 16 Aug 2019 23:33:02 -0400 Received: from nl101-3.vfemail.net ([149.210.219.33]:34615) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hypSf-000809-1I for bug-coreutils@gnu.org; Fri, 16 Aug 2019 23:33:01 -0400 Received: (qmail 62819 invoked from network); 17 Aug 2019 03:32:23 -0000 Received: by simscan 1.4.0 ppid: 62813, pid: 62817, t: 0.0047s scanners:none Received: from unknown (HELO bG9jYWxob3N0QDE1NjYwMTI3NDM=) (amVuc2JhbHRydXNjaEB2ZmVtYWlsLm5ldEAxNTY2MDEyNzQz@MTkyLjE2OC4xLjE5MkAxNTY2MDEyNzQz) by nl101.vfemail.net with ESMTPA; 17 Aug 2019 03:32:23 -0000 Received: from [171.115.77.78] ([171.115.77.78]) by vfemail.net (Horde Framework) with HTTPS; Sat, 17 Aug 2019 03:32:58 +0000 Date: Sat, 17 Aug 2019 03:32:58 +0000 Message-ID: <20190817033258.Horde.149rp-rr2mwABVSe1IjpHpx@vfemail.net> From: jensbaltrusch@vfemail.net To: bug-coreutils@gnu.org Subject: bug in date / coreutils User-Agent: Horde Application Framework 5 X-VFEmail-Originating-IP: MTcxLjExNS43Ny43OA== X-VFEmail-AntiSpam: Notify admin@vfemail.net of any spam, and include VFEmail headers Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 149.210.219.33 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 16 Aug 2019 23:37:39 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, I believe there is a bug in the date utility. My system is set to Berlin time, now daylight saving time. When I put in date --date='TZ="Europe/Berlin" now' I get correctly Sat 17 Aug 05:11:18 CEST 2019 However, putting in   date --date='TZ="America/Los_Angeles" now' yields Sat 17 Aug 14:12:03 CEST 2019 which is nonsense. Also, putting in date --date='TZ="Asia/Shanghai" now' giving Fri 16 Aug 23:13:36 CEST 2019 which is definitely wrong, as I am currently in China where the sun is up and shining. I get from date --version the following: date (GNU coreutils) 8.23 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by David MacKenzie. My system is Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux I get the same kind of error using 'today' instead of 'now', or 'tomorrow', '1 hour ago', etc. In case you need further information, please do not hesitate to contact me. Best, Jens Baltrusch ------------=_1566019263-9303-1--