X-Loop: help-debbugs@HIDDEN
Subject: bug#44240: coreutils 8.30-3ubuntu2 "date" command doesn't like one specific date: 2020-09-06
Resent-From: Leo Wandersleb <leo.wandersleb@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 26 Oct 2020 15:29:02 +0000
Resent-Message-ID: <handler.44240.B.160372612830034 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 44240
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 44240 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.160372612830034
(code B ref -1); Mon, 26 Oct 2020 15:29:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Oct 2020 15:28:48 +0000
Received: from localhost ([127.0.0.1]:40809 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1kX4QQ-0007oK-S3
for submit <at> debbugs.gnu.org; Mon, 26 Oct 2020 11:28:48 -0400
Received: from lists.gnu.org ([209.51.188.17]:44884)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <leo.wandersleb@HIDDEN>) id 1kX4D8-0007Tu-K4
for submit <at> debbugs.gnu.org; Mon, 26 Oct 2020 11:15:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35730)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <leo.wandersleb@HIDDEN>)
id 1kX4D8-0003V0-FR
for bug-coreutils@HIDDEN; Mon, 26 Oct 2020 11:15:02 -0400
Received: from mout.gmx.net ([212.227.17.20]:36629)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <leo.wandersleb@HIDDEN>)
id 1kX4D6-000656-Cl
for bug-coreutils@HIDDEN; Mon, 26 Oct 2020 11:15:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1603725297;
bh=4MC4tmmvOB9xxfMApy/Py0rULnUCFOzmHj/cRu1l7j4=;
h=X-UI-Sender-Class:To:From:Subject:Date;
b=SyLiRofP0Ot7OqbxTsaxJHC1NgIfadKbu6qJ67Gv32FIy0VBm/dCunAZHwlIpHINI
+fEGSQmnZ71rD4ucyc/bdm9pCk4fDyh7nKGL+2Vb8jqohSbFD8x6K0Zi4VmF4oXRIw
Fu4KLUHyZqBMY47Lz5+au/EsPVjVlhrz9td3jDR4=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.0.3] ([201.215.21.156]) by mail.gmx.com (mrgmx104
[212.227.17.168]) with ESMTPSA (Nemesis) id 1MHG8m-1kbRui1y5I-00DJpH for
<bug-coreutils@HIDDEN>; Mon, 26 Oct 2020 16:14:56 +0100
From: Leo Wandersleb <leo.wandersleb@HIDDEN>
Autocrypt: addr=leo.wandersleb@HIDDEN; prefer-encrypt=mutual; keydata=
mQENBE3ePdoBCADZmTvPyledh9wmNRE+i5k7dUmegSmBpe1kMgzlt3nxwzyE6l3wzT9wen8E
clmA4ZCLn77DjxF3Dg9X0sRio9No5r4u6luI0CzM7axvTi+5DWU25b+JGGdhKTMkyfyKBZdT
4xvjLzW9tT7upUuAh9nTcz9MBZS3vhKB1SqiBUdYqj33+2erIQzaYMIZ/crR6FbgDT5dI3gg
2YKJn4rdFy9saA0qngoDPkyU9u5TYtFk8zOreQrFXmXpLiptoxRolF9tqHyn51H4uV8ggIGc
xJWRW/i2vBFHSM6ZD7PceWCRU5ehf3h/wat1xtn/H7AB+wcywkYrdg1TLifftwcKYBlzABEB
AAG0JUxlbyBXYW5kZXJzbGViIDxMZW9ATGVvV2FuZGVyc2xlYi5kZT6JATgEEwECACIFAk3e
PdoCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEGuaHwy3wggSrqQH/Amh6+kYnIUM
8X5yicpXd37h/Nqnrs6KIE0nYCZe03tkQytndbWXmf2pBth6CEzqrS+wivU7L8dPdiFQtdEW
dDe8bjJ993TsVSyYrPHv549vD4DbjtB8WS7KEkMhhl+uVaC07YXNwOTAkshv4l3G2ll6dmBn
LDeF8kSU+DZ1eNzUYHjuUcQYl0XAK5wE7rVpzZUlR0Z5bKNm8QmUPgrZPu6cVRZ6tOD0EMR6
3dcGI5x0fB35gEUasgNYxQ/g2arh66Pg45olKT1bTcrTJYrE8IePElSCIFDrzrZMhStY3TbQ
qI3T0vsFGzEeU9M6LmKV8aii4g8o7af0kr4vYS3Nsp65AQ0ETd492gEIAMnahwe+MNliWgpF
B+UfrwzfgiLjtizH307HYB67THS4h2+MoBJUAqrV7CQkZ8kMYLBl4D+hvxrXDYte6wTb0kcY
X4NTGof8EDBPxUERYJlWbTbLccbA8d3ia++aTtqd9yRHobK8AO4R22cslYV/nQChHc+1/NFV
8V1O67U7XpnxQMUzYIhhvVcUwj+8bw/F3zPzS03PWnDv+gmwHt63w72Dth+P0F93/rI+OiEA
kC/7//1ngQ7auqOeWVdqR8Z1s7tI4kxsVkJfqj3wVu+qaso8FpjNGs888xH8xhgXlll8APWj
V9Rl3GtpRTdobzNh58jUfGmHh5bcRrYTrtldDwkAEQEAAYkBHwQYAQIACQUCTd492gIbDAAK
CRBrmh8Mt8IIEi3MB/0UlpEORi7qBOH9egn/8E9fXj3QGpmQ7IAvzvLjkp3cArerBhObhGJ+
lZ679/9KZ4FxWLDStzGJH3thQstZjcUZzLwTP1sNdY+uPkvOqrzclfPK13z5hJhORD8W0brB
UptTvyZthIxNIbY4uSbrvaAJmcPFi3cdKOjZz9XyH8AAxXcWGUjQuqxEc0GuM8h8asaUJesB
bE4J+HPZXcAOC3D+qIqvM438Nbb8Pu7yYWrdq5kmbDMg2nPHXUOOovEsXWBGjWEiXWVUei75
5Fumqg5mz4P8/Ry3DwZBuHN3Op77gXogvyeE/B5O6dZzWWpSqBIS6MQcLD1divwi/2vNS4c4
Message-ID: <79b55634-4837-86a4-9bc8-432cf6e34494@HIDDEN>
Date: Mon, 26 Oct 2020 12:14:53 -0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:BgoejoGB6UT0kd7Y+Og5Rd9MikNqejDA783Ir+tYqyHvQnL4Hde
kbXDd762EgpaNkl3kCS+U2BIHsNF3JmNggu5cP9fVaHKOM2O5oQprI6zKLY/STKlC0gQvUU
hErDCfetcORpXPnwNfETthFGwg+rGxXpUwHe/hsU1Mo1tacxFj+1pp1NJ3aTn9b9uwXC7X7
aqX2tcReZ1DfyF4mn88Qg==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:ywBLIUYYjRI=:GIlyjsbu28OkOwgAYiqgIG
VJaoN9fASsZm93F0bSzlGrPa8XYMl0yRqaPT1j6DxQ/bSNg4LGAlv/CZnfXgsosyodT/ZqufX
f81dOc6wqrG9dY7KFeyzOIQPwMmqQd43MlbW3DpSoyv0x+Bvep73GZt/JTaGBfHeGnDDlXPgd
jpB+qGh8iHMweppRca8wMuW6FyD0iHzYyc/HpGTS6CQ1/G6WcxBa6HfSyDdG6DrUjJnK01Mne
KR+fR80bPVQu5BEBnXE6FziHzsUn6FG6Q0dU4VSm0yPA2AtWj/0Q+9baCeNT2Q5H71zuIjg7v
uU5wcVWFlgEj0SjUI6Hx6gcB73gTWgBXUPjFDp4h43BRWPODeAmo4UedYOufp4PrVY2DYQxYX
h+SOoPOtP+fVdQuc42pnH/fHuPtzp4KmkfqPEByDeYb4UuaCcVXUmocSj9Rmjz6kYOtoJ8yDW
D3DECtZ9R3iphC0hSQeYl4S5fkCATi0nKnBLcFQmy5XAX7jzVLoWed9MaN8cRt1kGKq8TB8k3
CSaeV718MeCQe+xQy+JCPDUo+QBCQEsyegN+HTBsVq/fAZh1vSiC899jgh4AnUCOvHvjTWJ6R
SwmB0eWE+VfhLDyfcYS+J7ink7haUFT9drimnpjOGv7vj416MRjo3c8RrXMxv05TIq+F+coKY
hzkPSQlIbLGbZ1uUZ0UKKAIq+6Dy/9ASaTQYmGb8v7J3zYQl7fbzpEQQ9AecZ9ORYboFXrUz6
+8Ar12aHbgfcaGlyw3A35VnSwF0UrXXFeYJd/yCLw9iNJU4QoetN1ZGyEIjwKlae0otRRz9Rl
aPwIQJlSduP+AeKnAfVVuaY1ncXFX0Xw4oiXLSlLBaTmOA1si7Za2IwiVXrqgc20qHFoXQ0xn
i/9dqGvXGtSfM+m33/Vw==
Received-SPF: pass client-ip=212.227.17.20; envelope-from=leo.wandersleb@HIDDEN;
helo=mout.gmx.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/26 11:14:57
X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,
RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.3 (/)
X-Mailman-Approved-At: Mon, 26 Oct 2020 11:28:42 -0400
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: -2.4 (--)
Hi,
for some reason I get an error with one specific date but not with others:
$ for i in 08 09 10; do for j in 5 6 7; do d=3D"2020-$i-0$j"; echo $d $( d=
ate
-d"$d" ); done; done
2020-08-05 Wed 05 Aug 2020 12:00:00 AM -04
2020-08-06 Thu 06 Aug 2020 12:00:00 AM -04
2020-08-07 Fri 07 Aug 2020 12:00:00 AM -04
2020-09-05 Sat 05 Sep 2020 12:00:00 AM -04
date: invalid date =E2=80=982020-09-06=E2=80=99
2020-09-06
2020-09-07 Mon 07 Sep 2020 12:00:00 AM -03
2020-10-05 Mon 05 Oct 2020 12:00:00 AM -03
2020-10-06 Tue 06 Oct 2020 12:00:00 AM -03
2020-10-07 Wed 07 Oct 2020 12:00:00 AM -03
Regards,
Leo Wandersleb
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: Leo Wandersleb <leo.wandersleb@HIDDEN> Subject: bug#44240: Acknowledgement (coreutils 8.30-3ubuntu2 "date" command doesn't like one specific date: 2020-09-06) Message-ID: <handler.44240.B.160372612830034.ack <at> debbugs.gnu.org> References: <79b55634-4837-86a4-9bc8-432cf6e34494@HIDDEN> X-Gnu-PR-Message: ack 44240 X-Gnu-PR-Package: coreutils Reply-To: 44240 <at> debbugs.gnu.org Date: Mon, 26 Oct 2020 15:29:03 +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-coreutils@HIDDEN If you wish to submit further information on this problem, please send it to 44240 <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 44240: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44240 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#44240: coreutils 8.30-3ubuntu2 "date" command doesn't like one specific date: 2020-09-06
Resent-From: "Philip Rowlands" <phr+coreutils@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 26 Oct 2020 16:24:02 +0000
Resent-Message-ID: <handler.44240.B.160372940111950 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 44240
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords:
To: 44240 <at> debbugs.gnu.org
X-Debbugs-Original-To: "George R Goffe via GNU coreutils Bug Reports" <bug-coreutils@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.160372940111950
(code B ref -1); Mon, 26 Oct 2020 16:24:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Oct 2020 16:23:21 +0000
Received: from localhost ([127.0.0.1]:41032 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1kX5HF-00036g-8Y
for submit <at> debbugs.gnu.org; Mon, 26 Oct 2020 12:23:21 -0400
Received: from lists.gnu.org ([209.51.188.17]:48036)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <phr+coreutils@HIDDEN>) id 1kX5HD-00036Y-7Y
for submit <at> debbugs.gnu.org; Mon, 26 Oct 2020 12:23:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33072)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <phr+coreutils@HIDDEN>)
id 1kX5HC-00088E-W7
for bug-coreutils@HIDDEN; Mon, 26 Oct 2020 12:23:19 -0400
Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:57129)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <phr+coreutils@HIDDEN>)
id 1kX5HA-0000j5-T8
for bug-coreutils@HIDDEN; Mon, 26 Oct 2020 12:23:18 -0400
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
by mailout.west.internal (Postfix) with ESMTP id 26D3EE97
for <bug-coreutils@HIDDEN>; Mon, 26 Oct 2020 12:23:13 -0400 (EDT)
Received: from imap36 ([10.202.2.86])
by compute3.internal (MEProxy); Mon, 26 Oct 2020 12:23:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dimebar.com; h=
mime-version:message-id:in-reply-to:references:date:from:to
:subject:content-type:content-transfer-encoding; s=fm1; bh=Vb/k+
q+AGsrpRvXPuO68jNQ8clUIHX6EmrTGTf5HjAs=; b=jAXW7zmo7HZcbAfFWB6lH
6sdsN2oHs61zPbF9ha2y2xduz8R2QVL+ePpdLkG8t1/ZOzssS197l1NmfprHpkq0
fDq/few1jEbAIucfwd1drOEqkwGHwBUqUSC79PQbxr2PfxPrQoeWaHvhVoPn5rXf
CL5XsRf8cNGeUynjBT82GUGOXgj6/f+PP5cysnb+z7LKwvoWJuh3HBY/WefqFeTA
jtWG/7wEW6iyZTUIcOjLACURSEUnUMEclwA/GKf2ErPJm0a55YDsx/g/o0RUADkH
rP3k78zxJfVQ1rB5UEbcvS8PrpnHRT3DGZfCWlcxF0daNia+2DvKOwHZpxXqy+QE
w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=content-transfer-encoding:content-type
:date:from:in-reply-to:message-id:mime-version:references
:subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
:x-sasl-enc; s=fm1; bh=Vb/k+q+AGsrpRvXPuO68jNQ8clUIHX6EmrTGTf5Hj
As=; b=Z/xzxdb4b2ppohnsaBTZgnUoICCyfhxWJtUpFCf4TbJeHWnxvoaBWWmL3
cBbpJDVPl/g6H0vyGZzI76bYgK1sbfHIOZjtLPiyqKsMYbhBoF516KEDMkM4dMZN
Z7z+cwCHdGV7kqqxwOKPp9lFvon6aoY3NWMV2JWuCCFVKBh1plYEAa7N29sOjTOE
9vOwArHvyu09W45ZmnU518hocXf5Fe+uSlhtlL6gSN5xnTvow5Ui/cFeCDS16vRp
WQH1/AvbSbuUPhR4DbliaajDNy6C661SbgBNs36KjbQDYjJWi+Qskyk6fCFIwdvi
9G3GmGDecml7xp1BjI8Aw4rcNny7w==
X-ME-Sender: <xms:7_eWX1Vq_02VcY87nyNyruhJFpHD7dDYa4k1EW47A5KOs9u6px63GA>
<xme:7_eWX1nAmrOygrPFsGwWKSthoxIUovNkgL1p75g25dkq6NVJDOaxsu2BmpdBzDTll
VGdoR6NPlnhnLOp>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeejgdehudcutefuodetggdotefrodftvf
curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfrhhhi
lhhiphcutfhofihlrghnughsfdcuoehphhhrodgtohhrvghuthhilhhsseguihhmvggsrg
hrrdgtohhmqeenucggtffrrghtthgvrhhnpeeigeetkeelgfelueetfeetjeeiieetkeeu
hfdtteefleekgeehjeelteduheegueenucffohhmrghinhepghhnuhdrohhrghenucevlh
hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhrodgtohhr
vghuthhilhhsseguihhmvggsrghrrdgtohhm
X-ME-Proxy: <xmx:7_eWXxY0IPlWQ35CA8xEDCtWax0_CIZMzka0DMPGJQTYsLFq8QEtDQ>
<xmx:7_eWX4VdrV47qGKkJRApepuXYpESCsHkjlY1M4reZOIISq_ezLd3GA>
<xmx:7_eWX_kTtto8IWbFWrxVv473ubGvIHI2sQ1Tvambflf167D58TV_Jg>
<xmx:7_eWX5k7QJDU8DTolqH8LSarmDyEy-7mhQ2IM6fFK9LQ85Pbp2hVrA>
Received: by mailuser.nyi.internal (Postfix, from userid 501)
id 7F9171880587; Mon, 26 Oct 2020 12:23:11 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-529-g69105b1-fm-20201021.003-g69105b13
Mime-Version: 1.0
Message-Id: <2797ccf2-dca9-4a9d-889a-44d9298edd58@HIDDEN>
In-Reply-To: <79b55634-4837-86a4-9bc8-432cf6e34494@HIDDEN>
References: <79b55634-4837-86a4-9bc8-432cf6e34494@HIDDEN>
Date: Mon, 26 Oct 2020 16:22:43 +0000
From: "Philip Rowlands" <phr+coreutils@HIDDEN>
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: none client-ip=64.147.123.25;
envelope-from=phr+coreutils@HIDDEN; helo=wout2-smtp.messagingengine.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/26 12:18:41
X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
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: -3.3 (---)
On Mon, 26 Oct 2020, at 15:14, Leo Wandersleb wrote:
> for some reason I get an error with one specific date but not with oth=
ers:
>=20
> $ for i in 08 09 10; do for j in 5 6 7; do d=3D"2020-$i-0$j"; echo $d =
$( date
> -d"$d" ); done; done
> 2020-08-05 Wed 05 Aug 2020 12:00:00 AM -04
> 2020-08-06 Thu 06 Aug 2020 12:00:00 AM -04
> 2020-08-07 Fri 07 Aug 2020 12:00:00 AM -04
> 2020-09-05 Sat 05 Sep 2020 12:00:00 AM -04
> date: invalid date =E2=80=982020-09-06=E2=80=99
> 2020-09-06
> 2020-09-07 Mon 07 Sep 2020 12:00:00 AM -03
The clue is the change in timezone offset from -04 to -03. The only loca=
tion I could find which switched on 2020-09-06 was Chile, so we can repr=
oduce the problem with:
$ TZ=3DChile/Continental date --debug -d 2020-09-06
date: parsed date part: (Y-M-D) 2020-09-06
date: input timezone: TZ=3D"Chile/Continental" environment value
date: warning: using midnight as starting time: 00:00:00
date: error: invalid date/time value:
date: user provided time: '(Y-M-D) 2020-09-06 00:00:00'
date: normalized time: '(Y-M-D) 2020-09-06 01:00:00'
date: --
date: possible reasons:
date: non-existing due to daylight-saving time;
date: numeric values overflow;
date: missing timezone
date: invalid date =E2=80=982020-09-06=E2=80=99
Notice that, in Chile's DST rules, the time jumps from 23:59:59 to 01:00=
:00:
$ zdump -v Chile/Continental | grep 2020
Chile/Continental Sun Apr 5 02:59:59 2020 UT =3D Sat Apr 4 23:59:59 2=
020 -03 isdst=3D1 gmtoff=3D-10800
Chile/Continental Sun Apr 5 03:00:00 2020 UT =3D Sat Apr 4 23:00:00 2=
020 -04 isdst=3D0 gmtoff=3D-14400
Chile/Continental Sun Sep 6 03:59:59 2020 UT =3D Sat Sep 5 23:59:59 2=
020 -04 isdst=3D0 gmtoff=3D-14400
Chile/Continental Sun Sep 6 04:00:00 2020 UT =3D Sun Sep 6 01:00:00 2=
020 -03 isdst=3D1 gmtoff=3D-10800
Therefore there is no valid time "00:00:00", and this is the "non-existi=
ng due to daylight-saving time" case which date --debug reports.
This is an FAQ, which often crops up twice per year:
https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-c=
ommand-is-not-working-right_002e
Cheers,
Phil
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.