GNU bug report logs - #48353
result of date is wrong if Etc/GMT is used

Previous Next

Package: coreutils;

Reported by: Thomas Güttinger <Guettinger <at> igel.com>

Date: Tue, 11 May 2021 15:02:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48353 in the body.
You can then email your comments to 48353 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#48353; Package coreutils. (Tue, 11 May 2021 15:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Güttinger <Guettinger <at> igel.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 11 May 2021 15:02:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Güttinger <Guettinger <at> igel.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: result of date is wrong if Etc/GMT is used
Date: Tue, 11 May 2021 10:17:37 +0000
[Message part 1 (text/plain, inline)]
The date command inverts the sign if TZ is set with Etc/GMT.

Example:
TZ=':Etc/GMT+5' date
Result:
Di 11. Mai 05:08:48 -05 2021

Tested with version coreutils-8.28 and coreutils 8.32-1.


Thomas Güttinger
Linux Developer



Guettinger <at> igel.com<http://http//mailto:%7BE-mail%7D>
www.igel.com<http://www.igel.com>

Come join the IGEL community and Follow us<https://www.igel.com/follow-us-now/>

IGEL Technology GmbH
Forschungs- und Entwicklungsabteilung
Hermanstr. 17
86150 Augsburg
Germany

IGEL Technology GmbH, Hermann-Ritter-Straße 110, 28197 Bremen, Germany
Geschäftsführer: Jedediah Ayres (CEO), Matthias Haas (CTO)
Amtsgericht Bremen: HRB 20636
VAT-ID: DE 219524359, WEEE-Reg.-No. DE 79295479
[Message part 2 (text/html, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 11 May 2021 19:09:02 GMT) Full text and rfc822 format available.

Notification sent to Thomas Güttinger <Guettinger <at> igel.com>:
bug acknowledged by developer. (Tue, 11 May 2021 19:09:02 GMT) Full text and rfc822 format available.

Message #10 received at 48353-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Thomas Güttinger <Guettinger <at> igel.com>
Cc: 48353-done <at> debbugs.gnu.org
Subject: Re: bug#48353: result of date is wrong if Etc/GMT is used
Date: Tue, 11 May 2021 12:08:32 -0700
On 5/11/21 3:17 AM, Thomas Güttinger wrote:
> The date command inverts the sign if TZ is set with Etc/GMT.

That's a feature, not a bug. The Etc zones are documented to use the 
opposite sign, to be consistent with POSIX settings like TZ='<+05>-5'.

$ date -u; TZ='<+05>-5' date; TZ=Etc/GMT-5 date
Tue May 11 19:07:34 UTC 2021
Wed May 12 00:07:34 +05 2021
Wed May 12 00:07:34 +05 2021




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 09 Jun 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 9 days ago.

Previous Next


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