bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul Eggert
Subject: bug#48353: result of date is wrong if Etc/GMT is used
Date: Tue, 11 May 2021 12:08:32 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]