Subject: bug#48353: closed (Re: bug#48353: result of date is wrong if Etc/GMT is used)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 11 May 2021 19:09:02 +0000

Your bug report

#48353: result of date is wrong if Etc/GMT is used

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 [email-masked].

-- 
48353: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48353
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#48353: result of date is wrong if Etc/GMT is used
From: Paul Eggert <[email-masked]>
To: Thomas Güttinger <[email-masked]>
Cc: [email-masked]
Date: Tue, 11 May 2021 12:08:32 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: result of date is wrong if Etc/GMT is used
From: Thomas Güttinger <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Tue, 11 May 2021 10:17:37 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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

[email-masked]<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