From: cyg Simple <cygsimple@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Time zone bug
Date: Mon, 01 May 2017 15:25:00 -0000 [thread overview]
Message-ID: <c3f51391-e519-050b-0d6e-c982852bf82a@gmail.com> (raw)
In-Reply-To: <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
next parent reply other threads:[~2017-05-01 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <31d25ae6-b4f1-54cf-5582-810eeedcd8d3@cornell.edu>
[not found] ` <590670ec.5b119d0a.2fbc1.6460@mx.google.com>
2017-05-01 15:25 ` cyg Simple [this message]
2017-05-01 17:25 ` Brian Inglis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3f51391-e519-050b-0d6e-c982852bf82a@gmail.com \
--to=cygsimple@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).