This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Time zone bug
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 1 May 2017 11:25:04 -0400
- Subject: Re: Time zone bug
- Authentication-results: sourceware.org; auth=none
- References: <31d25ae6-b4f1-54cf-5582-810eeedcd8d3@cornell.edu> <590670ec.5b119d0a.2fbc1.6460@mx.google.com>
On 4/30/2017 7:19 PM, Steven Penny wrote:
> On Sun, 30 Apr 2017 17:37:00, Ken Brown wrote:
>> As a result of a failing emacs test, I came across the following:
>>
>> $ TZ='NZST-12NZDT,M9.5.0,M4.1.0/3' date -d@0 +'%Y-%m-%d %H:%M:%S %z (%Z)'
>> 1970-01-01 12:00:00 +1200 (NZST)
>>
>> The same command on Linux yields "1970-01-01 13:00:00 +1300 (NZDT)",
>> which is
>> correct according to Paul Eggert
>> (https://lists.gnu.org/archive/html/emacs-devel/2017-04/msg00881.html).
>
> I concur, here is non-esoteric example Linux:
>
> $ TZ=Pacific/Auckland date +%Z
> NZST
>
> $ TZ=NZST date +%Z
> NZST
>
> $ TZ=NZDT date +%Z
> NZDT
>
> Cygwin:
>
> $ TZ=Pacific/Auckland date +%Z
> NZST
>
> $ TZ=NZST date +%Z
> GMT
>
> $ TZ=NZDT date +%Z
> GMT
The TZ value doesn't matter.
$ TZ=America/New_York date +%Z
EDT
$ TZ=EDT date +%Z
GMT
--
cyg Simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple