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


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




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.