GNU logs - #37961, boring messages


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#37961: Bug report of date commond
Resent-From: "zhangzhimin@HIDDEN" <zhangzhimin@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 28 Oct 2019 14:34:03 +0000
Resent-Message-ID: <handler.37961.B.15722732393792 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 37961
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: 37961 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-coreutils <bug-coreutils@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.15722732393792
          (code B ref -1); Mon, 28 Oct 2019 14:34:03 +0000
Received: (at submit) by debbugs.gnu.org; 28 Oct 2019 14:33:59 +0000
Received: from localhost ([127.0.0.1]:46055 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iP65l-0000z5-TZ
	for submit <at> debbugs.gnu.org; Mon, 28 Oct 2019 10:33:58 -0400
Received: from lists.gnu.org ([209.51.188.17]:39559)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zhangzhimin@HIDDEN>) id 1iOzYA-000785-GK
 for submit <at> debbugs.gnu.org; Mon, 28 Oct 2019 03:34:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46393)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <zhangzhimin@HIDDEN>) id 1iOzY9-0000pb-3t
 for bug-coreutils@HIDDEN; Mon, 28 Oct 2019 03:34:50 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.6 required=5.0 tests=BAYES_50,HTML_MESSAGE,
 MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled
 version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <zhangzhimin@HIDDEN>) id 1iOzY7-0001nY-A5
 for bug-coreutils@HIDDEN; Mon, 28 Oct 2019 03:34:48 -0400
Received: from smtp23.cstnet.cn ([159.226.251.23]:36022 helo=cstnet.cn)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <zhangzhimin@HIDDEN>) id 1iOzY6-0001lU-CI
 for bug-coreutils@HIDDEN; Mon, 28 Oct 2019 03:34:47 -0400
Received: from USER-VHUSAOE29Q (unknown [159.226.234.14])
 by APP-03 (Coremail) with SMTP id rQCowACHjzsOmrZdhRD6AQ--.9937S2;
 Mon, 28 Oct 2019 15:34:39 +0800 (CST)
Date: Mon, 28 Oct 2019 15:34:38 +0800
From: "zhangzhimin@HIDDEN" <zhangzhimin@HIDDEN>
X-Priority: 3
X-GUID: 76A9924C-7DF6-4C2A-A254-6198B7553F57
X-Has-Attach: no
X-Mailer: Foxmail 7.2.11.303[cn]
Mime-Version: 1.0
Message-ID: <2019102815343859707912@HIDDEN>
Content-Type: multipart/alternative;
 boundary="----=_001_NextPart076101572656_=----"
X-CM-TRANSID: rQCowACHjzsOmrZdhRD6AQ--.9937S2
X-Coremail-Antispam: 1UD129KBjvJXoW7ZryDXryUJrWxCF13trW3Awb_yoW8GF1fpr
 Zag3s8Wa1DG343ZrySvFy5WF9Iya4fKa4rG34xJ34rZr15XFy0y3y7X3y8CFsxWr4qyw17
 ury0vr4DJa129FUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2
 9KBjDU0xBIdaVrnRJUUUpCb7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2
 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw
 A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xII
 jxv20xvEc7CjxVAFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV
 C2z280aVCY1x0267AKxVWxJr0_GcWlnx0E6VACY4xI67k04243AVACY4xI67k04243AVAK
 zVAKj4xI6x02cVCv0xWle2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG67k08I80eVWUJV
 W8JwAqx4xG62kEwI0EY4vaYxAvb48xMc02F40Ew4AK048IF2xKxVWUJVW8JwAqx4xG6I80
 eVA0xI0YY7vIx2IE14AGzxvEb7x7McIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv67
 AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACY4xI67k0
 4243AVAKzVAKj4xxM4xvF2IEb7IF0Fy26I8I3I1l7480Y4vEI4kI2Ix0rVAqx4xJMxkIec
 xEwVAFwVW8CwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02
 F40E14v26r106r1rMI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jr0_Jr
 ylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7Cj
 xVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI
 0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JwCE64xvF2IEb7IF0Fy7YxBIdaVF
 xhVjvjDU0xZFpf9x07ji0eLUUUUU=
X-Originating-IP: [159.226.234.14]
X-CM-SenderInfo: x2kd0w52klzx3q6ptxnoolt1wodfhubq/
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy]
X-Received-From: 159.226.251.23
X-Spam-Score: 0.7 (/)
X-Mailman-Approved-At: Mon, 28 Oct 2019 10:33:56 -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: -0.3 (/)

This is a multi-part message in MIME format.

------=_001_NextPart076101572656_=----
Content-Type: text/plain;
	charset="GB2312"
Content-Transfer-Encoding: base64

TXIuIG1haW50YWluZXJzOg0KICAgICAgICBIZWxsbyEgSSBhbSB2ZXJ5IGdsYWQgdG8gd3JpdGUg
dGhpcyBlbWFpbCB0byByZXBvcnQgbXkgcHJvYmxlbS4NCiAgICAgICAgV2hlbiBJIGFtIHJ1bm5p
bmcgY29tbW9uZCBvbiBteSBzZXJ2ZXKjuiANCg0Kfj5kYXRlICAtZCAiMTk0MC0wNi0wMSIgKyIl
WS0lbS0lZCINCmRhdGU6IGludmFsaWQgZGF0ZSChrjE5NDAtMDYtMDGhrw0KDQpidXQgdGhlIG90
aGVyIGNvbW1vbmQgd29ya3MgcmlnaHSjug0Kc2Vuc2UzOn4+ZGF0ZSAgLWQgJzE5MzktMDYtMDEn
ICsiJVktJW0tJWQiDQoxOTM5LTA2LTAxDQpzZW5zZTM6fj5kYXRlICAtZCAnMTk0MC0wNi0wMicg
KyIlWS0lbS0lZCINCjE5NDAtMDYtMDINCnNlbnNlMzp+PmRhdGUgIC1kICcxOTQwLTA1LTMxJyAr
IiVZLSVtLSVkIg0KMTk0MC0wNS0zMQ0Kc2Vuc2UzOn4+ZGF0ZSAgLWQgJzE5NDAtMDctMDInICsi
JVktJW0tJWQiDQoxOTQwLTA3LTAyDQpzZW5zZTM6fj5kYXRlICAtZCAnMTk0MC0wNy0wMScgKyIl
WS0lbS0lZCINCjE5NDAtMDctMDENCnNlbnNlMzp+PmRhdGUgIC1kICcxOTQwLTA1LTAxJyArIiVZ
LSVtLSVkIg0KMTk0MC0wNS0wMQ0KDQoNCiAgICBteSBzZXJ2ZXIncyB2ZXJzaW9uIGFuZCBkYXRl
IHZlcnNpb24gaXOjug0Kfj51bmFtZSAtYQ0KTGludXggemVuZ2xhYiAzLjEwLjAtOTU3LjEyLjEu
ZWw3Lng4Nl82NCAjMSBTTVAgTW9uIEFwciAyOSAxNDo1OTo1OSBVVEMgMjAxOSB4ODZfNjQgeDg2
XzY0IHg4Nl82NCBHTlUvTGludXgNCn4+ZGF0ZSAtLXZlcnNpb24NCmRhdGUgKEdOVSBjb3JldXRp
bHMpIDguMjINCkNvcHlyaWdodCAoQykgMjAxMyBGcmVlIFNvZnR3YXJlIEZvdW5kYXRpb24sIElu
Yy4NCkxpY2Vuc2UgR1BMdjMrOiBHTlUgR1BMIHZlcnNpb24gMyBvciBsYXRlciA8aHR0cDovL2du
dS5vcmcvbGljZW5zZXMvZ3BsLmh0bWw+Lg0KVGhpcyBpcyBmcmVlIHNvZnR3YXJlOiB5b3UgYXJl
IGZyZWUgdG8gY2hhbmdlIGFuZCByZWRpc3RyaWJ1dGUgaXQuDQpUaGVyZSBpcyBOTyBXQVJSQU5U
WSwgdG8gdGhlIGV4dGVudCBwZXJtaXR0ZWQgYnkgbGF3Lg0KICAgICAgICBXcml0dGVuIGJ5IERh
dmlkIE1hY0tlbnppZS4NCg0KICAgIFRoaXMgZXJyb3IgbWFrZXMgbXkgcHJvZ3JhbSB3b2tpbmcg
d3JvbmcuIEhvcGUgZm9yIHlvdXIgcmVwbHkuDQoNCiAgICBUaGFuayB5b3UhDQoNCg0KDQoNCg0K
DQog1cXWvsP0ILy8yvW5pLPMyqYgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICANCrWlzrujutbQufq/xtGn1Lq088b4zu/A7dHQvr/L+SC0
88b4v8bRp7rNtdjH8sH3zOXBptGnyv3WtcSjxOK5+rzS1ti148q10enK0qOoTEFTR6OptdjWt6O6
1tC5+rGxvqnK0LOv0fTH+LXCyqTDxc3ixu680rvt19O7qtHPwO80MCOjrLGxvqmjrDEwMDAyOSAg
ICAgICAgICDTys/ko7p6aGFuZ3poaW1pbkBtYWlsLmlhcC5hYy5jbg0Ktee7sKO6MTMzOTE4MzU3
NDANCg==

------=_001_NextPart076101572656_=----
Content-Type: text/html;
	charset="GB2312"
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charse=
t=3DGB2312"><style>body { line-height: 1.5; }body { font-size: 10.5pt; fon=
t-family: =CE=A2=C8=ED=D1=C5=BA=DA; color: rgb(0, 0, 0); line-height: 1.5;=
 }</style></head><body>=0A<div><span></span>Mr. maintainers:</div><div><sp=
an style=3D"color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">&nbs=
p; &nbsp;&nbsp;</span><span style=3D"color: rgb(0, 0, 0); font-size: 10.5p=
t; line-height: 1.5; background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp; He=
llo! I am very glad to write this email to report my problem.</span></div>=
<div><span style=3D"color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0=
);">&nbsp; &nbsp;&nbsp;</span><span style=3D"color: rgb(0, 0, 0); font-siz=
e: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);">&nbsp; &=
nbsp; When I am running commond on my server=A3=BA&nbsp;</span></div><div>=
<span style=3D"color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; b=
ackground-color: rgba(0, 0, 0, 0);"><br></span></div><blockquote style=3D"=
margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><span style=3D"=
background-color: rgb(255, 255, 0);">~&gt;date &nbsp;-d "1940-06-01" +"%Y-=
%m-%d"</span></div></div><div><div><span style=3D"background-color: rgb(25=
5, 255, 0);">date: invalid date =A1=AE1940-06-01=A1=AF</span></div><div><s=
pan style=3D"background-color: rgb(255, 255, 255);"><br></span></div><div>=
<span style=3D"background-color: rgb(255, 255, 255);">but the other common=
d works right=A3=BA</span></div><div><div><span style=3D"background-color:=
 rgb(255, 255, 0);">sense3:~&gt;date &nbsp;-d '1939-06-01' +"%Y-%m-%d"</sp=
an></div><div><span style=3D"background-color: rgb(255, 255, 0);">1939-06-=
01</span></div><div><span style=3D"background-color: rgb(255, 255, 0);">se=
nse3:~&gt;date &nbsp;-d '1940-06-02' +"%Y-%m-%d"</span></div><div><span st=
yle=3D"background-color: rgb(255, 255, 0);">1940-06-02</span></div><div><s=
pan style=3D"background-color: rgb(255, 255, 0);">sense3:~&gt;date &nbsp;-=
d '1940-05-31' +"%Y-%m-%d"</span></div><div><span style=3D"background-colo=
r: rgb(255, 255, 0);">1940-05-31</span></div><div><span style=3D"backgroun=
d-color: rgb(255, 255, 0);">sense3:~&gt;date &nbsp;-d '1940-07-02' +"%Y-%m=
-%d"</span></div><div><span style=3D"background-color: rgb(255, 255, 0);">=
1940-07-02</span></div><div><span style=3D"background-color: rgb(255, 255,=
 0);">sense3:~&gt;date &nbsp;-d '1940-07-01' +"%Y-%m-%d"</span></div><div>=
<span style=3D"background-color: rgb(255, 255, 0);">1940-07-01</span></div=
><div><span style=3D"background-color: rgb(255, 255, 0);">sense3:~&gt;date=
 &nbsp;-d '1940-05-01' +"%Y-%m-%d"</span></div><div><span style=3D"backgro=
und-color: rgb(255, 255, 0);">1940-05-01</span></div><div><span style=3D"b=
ackground-color: rgb(255, 255, 255);"><br></span></div></div><div><span st=
yle=3D"font-size: 10.5pt; line-height: 1.5; background-color: rgb(255, 255=
, 255);"><br></span></div></div></blockquote><span style=3D"font-size: 10.=
5pt; line-height: 1.5; background-color: rgb(255, 255, 255);">&nbsp; &nbsp=
; my </span><span style=3D"font-size: 10.5pt; line-height: 1.5; background=
-color: transparent;">server's version and date version is=A3=BA</span><br=
><blockquote style=3D"margin: 0 0 0 40px; border: none; padding: 0px;"><di=
v><div><div>~&gt;uname -a</div></div></div><div><div><div><span style=3D"b=
ackground-color: rgb(255, 255, 0);">Linux zenglab 3.10.0-957.12.1.el7.x86_=
64 #1 SMP Mon Apr 29 14:59:59 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</spa=
n></div></div></div><div><div><div>~&gt;date --version</div></div></div><d=
iv><div><div><span style=3D"background-color: rgb(255, 255, 0);">date (GNU=
 coreutils) 8.22</span></div></div></div><div><div><div>Copyright (C) 2013=
 Free Software Foundation, Inc.</div></div></div><div><div><div>License GP=
Lv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;.=
</div></div></div><div><div><div>This is free software: you are free to ch=
ange and redistribute it.</div></div></div><div><div><div>There is NO WARR=
ANTY, to the extent permitted by law.</div></div></div></blockquote><div><=
div><div><span style=3D"color: rgb(0, 0, 0); font-size: 10.5pt; line-heigh=
t: 1.5; background-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><sp=
an style=3D"color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; back=
ground-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp;&nbsp;</span><span style=3D"=
font-size: 10.5pt; line-height: 1.5; background-color: transparent;">Writt=
en by David MacKenzie.</span></div></div><div><span style=3D"font-size: 10=
.5pt; line-height: 1.5; background-color: transparent;"><br></span></div><=
div>&nbsp; &nbsp; This error makes my program woking wrong. Hope for your =
reply.</div><div><br></div><div><span style=3D"color: rgb(0, 0, 0); backgr=
ound-color: rgba(0, 0, 0, 0);">&nbsp; &nbsp; Thank you!</span></div><div><=
span style=3D"color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><b=
r></span></div><div><br></div><div style=3D"color: rgb(0, 0, 0); font-size=
: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"><br></div=
></div>=0A<div><br></div><hr style=3D"width: 210px; height: 1px;" color=3D=
"#b5c4df" size=3D"1" align=3D"left">=0A<div><span><div style=3D"MARGIN: 10=
px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div><span style=3D"color: rgb(=
0, 0, 0); font-size: 13.3333px; background-color: rgba(0, 0, 0, 0);">&nbsp=
;</span><span style=3D"font-size: 14px; line-height: normal; background-co=
lor: transparent;">=D5=C5=D6=BE=C3=F4 =BC=BC=CA=F5=B9=A4=B3=CC=CA=A6</span=
><span lang=3D"EN-US" style=3D"font-size: 14px; line-height: normal; backg=
round-color: transparent;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp;&nbsp;</span></div><div><pre style=3D"font-size: 14px; line-=
height: normal;">=B5=A5=CE=BB=A3=BA=D6=D0=B9=FA=BF=C6=D1=A7=D4=BA=B4=F3=C6=
=F8=CE=EF=C0=ED=D1=D0=BE=BF=CB=F9 =B4=F3=C6=F8=BF=C6=D1=A7=BA=CD=B5=D8=C7=
=F2=C1=F7=CC=E5=C1=A6=D1=A7=CA=FD=D6=B5=C4=A3=C4=E2=B9=FA=BC=D2=D6=D8=B5=
=E3=CA=B5=D1=E9=CA=D2=A3=A8LASG=A3=A9</pre><pre style=3D"font-size: 14px; =
line-height: normal;">=B5=D8=D6=B7=A3=BA=D6=D0=B9=FA=B1=B1=BE=A9=CA=D0=B3=
=AF=D1=F4=C7=F8=B5=C2=CA=A4=C3=C5=CD=E2=C6=EE=BC=D2=BB=ED=D7=D3=BB=AA=D1=
=CF=C0=EF<span lang=3D"EN-US">40#</span>=A3=AC=B1=B1=BE=A9=A3=AC<span lang=
=3D"EN-US">100029&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o=
:p></o:p></span></pre><pre style=3D"font-size: 14px; line-height: normal;"=
>=D3=CA=CF=E4=A3=BA<a href=3D"mailto:zhangzhimin@HIDDEN" style=3D"=
font-family: verdana; white-space: normal; font-size: 13.3333px; backgroun=
d-color: transparent;">zhangzhimin@HIDDEN</a><span lang=3D"EN-US">=
<br></span>=B5=E7=BB=B0=A3=BA<span lang=3D"EN-US">13391835740</span></pre>=
</div><span style=3D"font-size: 13.3333px; color: rgb(0, 0, 0); background=
-color: rgba(0, 0, 0, 0);"></span></div></span></div>=0A</body></html>
------=_001_NextPart076101572656_=------





Message sent:


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: "zhangzhimin@HIDDEN" <zhangzhimin@HIDDEN>
Subject: bug#37961: Acknowledgement (Bug report of date commond)
Message-ID: <handler.37961.B.15722732393792.ack <at> debbugs.gnu.org>
References: <2019102815343859707912@HIDDEN>
X-Gnu-PR-Message: ack 37961
X-Gnu-PR-Package: coreutils
Reply-To: 37961 <at> debbugs.gnu.org
Date: Mon, 28 Oct 2019 14:34: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 37961 <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
37961: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D37961
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-coreutils@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#37961: Bug report of date commond
Resent-From: Paul Eggert <eggert@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-coreutils@HIDDEN
Resent-Date: Mon, 28 Oct 2019 18:53:02 +0000
Resent-Message-ID: <handler.37961.B37961.15722887415417 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 37961
X-GNU-PR-Package: coreutils
X-GNU-PR-Keywords: 
To: "zhangzhimin@HIDDEN" <zhangzhimin@HIDDEN>, 37961 <at> debbugs.gnu.org
Received: via spool by 37961-submit <at> debbugs.gnu.org id=B37961.15722887415417
          (code B ref 37961); Mon, 28 Oct 2019 18:53:02 +0000
Received: (at 37961) by debbugs.gnu.org; 28 Oct 2019 18:52:21 +0000
Received: from localhost ([127.0.0.1]:46347 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iPA7p-0001PJ-E6
	for submit <at> debbugs.gnu.org; Mon, 28 Oct 2019 14:52:21 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56230)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1iPA7n-0001P2-Li
 for 37961 <at> debbugs.gnu.org; Mon, 28 Oct 2019 14:52:20 -0400
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 284F416022E;
 Mon, 28 Oct 2019 11:52:13 -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 Lvpxz9aV5icB; Mon, 28 Oct 2019 11:52:12 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 30BE0160260;
 Mon, 28 Oct 2019 11:52:12 -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 jcKmAVP2GFMO; Mon, 28 Oct 2019 11:52:12 -0700 (PDT)
Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1562316022E;
 Mon, 28 Oct 2019 11:52:12 -0700 (PDT)
References: <2019102815343859707912@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <d33df6e0-40f1-83d8-9f9f-44ba2ba31cda@HIDDEN>
Date: Mon, 28 Oct 2019 11:52:11 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.1.1
MIME-Version: 1.0
In-Reply-To: <2019102815343859707912@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
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 10/28/19 12:34 AM, zhangzhimin@HIDDEN wrote:
> ~>date  -d "1940-06-01" +"%Y-%m-%d"
> date: invalid date =E2=80=981940-06-01=E2=80=99

Presumably your TZ setting is Asia/Shanghai, as I see the symptoms as=20
follows:

$ TZ=3DAsia/Shanghai date  -d "1940-06-01" +"%Y-%m-%d"
date: invalid date =E2=80=981940-06-01=E2=80=99

This is because there is no instant of time 1940-06-01 00:00:00 in=20
Shanghai, as the the clock ticked over from 1940-05-30 23:59:59 to=20
1940-06-01 01:00:00 due to a daylight-saving time transition.

For this particular case, you'll have better luck with:

$ date -d "1940-06-01 12:00" +"%Y-%m-%d"

but this sort of approach does not work in general, because 12:00 does=20
not always exist either. In other words, the 'date' command is not=20
suited for calendrical arithmetic in general, only for time arithmetic.





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.