X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 03BD1384F03B
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
 header.from=ext.eeas.europa.eu
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=ext.eeas.europa.eu
From: "KAVALAGIOS Panagiotis (EEAS-EXT)"
 <Panagiotis.KAVALAGIOS@ext.eeas.europa.eu>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: Python for Windows reports wrong local time when run under Cygwin
 on Europe/Moscow TZ
Thread-Topic: Python for Windows reports wrong local time when run under
 Cygwin on Europe/Moscow TZ
Thread-Index: AQHXXgloWr/LHS9uvkOVh/9OGMvWzasNWpMA
Date: Thu, 10 Jun 2021 15:25:53 +0000
Message-ID: <cc5fdd94b40443c0b8cbccea0955f761@BELBRU-EXMP101.eeas.europa.eu>
References: <CAAHpriO6A+6bLXt0Qe-xpdXT1CiLjk7=7G31cHBtnVJ0kXb2Eg@mail.gmail.com>
 <CAAHpriOJ5EZ0YzXjNOV-fydCb6bWHmPKiFZUC7KtFAi8DnkkDQ@mail.gmail.com>
 <02d5b40f-aa35-f56c-5c5c-b10780355e91@SystematicSw.ab.ca>
 <0fcfeb54-53c5-b83d-bb13-e83a68eed469@cornell.edu>
In-Reply-To: <0fcfeb54-53c5-b83d-bb13-e83a68eed469@cornell.edu>
Accept-Language: en-GB, el-GR, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.51.5.118]
MIME-Version: 1.0
X-Proofpoint-ORIG-GUID: wW867-jcmXlEKeUAWLBfwNQoJYzaWi8z
X-Proofpoint-GUID: wW867-jcmXlEKeUAWLBfwNQoJYzaWi8z
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761
 definitions=2021-06-10_10:2021-06-10,
 2021-06-10 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam
 score=0 adultscore=0
 priorityscore=1501 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0
 suspectscore=0 mlxscore=0 clxscore=1015 mlxlogscore=907 malwarescore=0
 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1
 engine=8.12.0-2104190000 definitions=main-2106100098
X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
 SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

> -----Original Message-----
> Behalf Of Ken Brown via Cygwin
> Sent: 10 June 2021 16:58
> Subject: Re: Python for Windows reports wrong local time when run under
> Cygwin on Europe/Moscow TZ
> 
 
> I'm not convinced it's worth the trouble.  I haven't seen anyone argue that
> it's useful for Cygwin to set TZ, and I have seen an argument that it's harmful:
> 
>    https://cygwin.com/pipermail/cygwin/2017-May/232675.html .
> 
> So I prefer Keith's second suggestion:
> 
>  >> - Cygwin shouldn't set TZ at all by default.

I also support that TZ environmental variable shouldn't be set by default in Cygwin. I don't even remember any Solaris, HP-UX, IRIX, Digital Unix, FreeBSD, Linux etc. setting it by default. It was up to the user to define it and enjoy with the different output of the "date" command.

It might have been introduced in Cygwin to resolve some issues on the programs that need POSIX TZ format, but for the rest of the programs that still consult the windows format will fail. It would be more reasonable to use a wrapper script for those programs that have issues to set it explicitly to the expected windows default format.

Kind regards,

Panos Kavalagios

Application Architect
CONSULIAT (under contract with the EEAS)
BA.BS.3.IS
Office: EEAS B100 Floor 5 Area 048
Rue Belliard 100, 1000 Brussels
Phone: +32 2 584 6017



-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
