delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/01/11:25:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=kEc67UMb4518VoWS
2C0Vi+9ywjd9wsh+MzCZV2S81JAz+C3lbGpVqzlK72EJA35V62FAJEVVfDY8QUJc
D1J8zoqHw3hsxI6I71uJhhSCHMIcCfHgk5qRpNA/MLsIPm/SCSI+SNFz+VBFCIOj
JQE0v/CFIQIm6DUQZ0RBBRz1asI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=2ev+4Wglr457T3hXSRYhJk
Kr2EA=; b=jzwuDl6HDEh/mVzfWfqBbyVblgCEQ3EsHwbSxs4J/0KjjmTt7anDcN
tKY14eaVW8DsvK1QunYCOZJHY9iR+/VO6xh5HfsPRnHSygT0ErTkR+3F8HD4zZBv
TfqtamHm4MPDc0/5KDHghogIMw+Ho8C3NLK/YGPKyGdArDBsfjpvo=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=penny, Penny, cyg, Hx-languages-length:861
X-HELO: mail-io0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ixyRbT27q7nn52ecf4zIiQLRs3+fmzE+ocHUnUUk50E=; b=PEZnobIckutgZsD5pYNx0OL/wKnp5FAYf/ySxPZy+r0SJnuPgbL2EhIl66rgc8NnRZ l/vMCeoiGGL0c3HLK7u2cuAwqfk5u8qFzBhr1m7yYFgPuaBuquHekQ+jyS2+8S1P5ll+ Bj89jHWdib5ArWSTCRi2admHwmUbNJDp5JNBpyr6F8PE31jXdEedJ2mUehdlBtP+KHbI cb22pHmC4WHg6PxAmfRPxq6MShD/dhW2DVocFzi1DYrnO8qxP0gUpQeuNeAw9ZAxBfOb 6/zw6SrN/9NM6dW9CetDkXTSJZPhezQkvryCqDvHH3zpsjkfzVFN7tQXKCy+5PVczZFj UhZA==
X-Gm-Message-State: AN3rC/5hGKmUD24oU/U2D9/HEeZ2T+98azWhG4TzjwbjaAwULGe3EJ+t v/Qsilg75P45ykrs
X-Received: by 10.107.17.196 with SMTP id 65mr22221638ior.31.1493652303834; Mon, 01 May 2017 08:25:03 -0700 (PDT)
Subject: Re: Time zone bug
To: cygwin AT cygwin DOT com
References: <31d25ae6-b4f1-54cf-5582-810eeedcd8d3 AT cornell DOT edu> <590670ec DOT 5b119d0a DOT 2fbc1 DOT 6460 AT mx DOT google DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <c3f51391-e519-050b-0d6e-c982852bf82a@gmail.com>
Date: Mon, 1 May 2017 11:25:04 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <590670ec.5b119d0a.2fbc1.6460@mx.google.com>
X-IsSubscribed: yes

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 AT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019