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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#48353: closed (result of date is wrong if Etc/GMT is used)
Date: Tue, 11 May 2021 19:09:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 11 May 2021 12:08:32 -0700
with message-id <2c24ee5d-7b72-7776-7ad4-0797e0f8b576 <at> cs.ucla.edu>
and subject line Re: bug#48353: result of date is wrong if Etc/GMT is used
has caused the debbugs.gnu.org bug report #48353,
regarding result of date is wrong if Etc/GMT is used
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
48353: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48353
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
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


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

Previous Next


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