X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7AA13951C10
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1623155345;
	bh=fywddeoQw8KYd5wuokE8gnxR6BLFGfktyfznHj1Jm1Q=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=tbP15LNdJihbBCc7x1A+GPGe8P7DTvg9F7BDMYmvB3SG6K6rFq+porctU/5lNLWvg
	 txgHeyDKhfsEu9k/9g/Kpy1hNd690dTR1miWVD8dXyuctNgTmZSR5GKp8rbQpl9KBA
	 qOsw7uNb8NYyXeEAb1yWf+awclLlVR1rmqlKFEWA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B27813865488
Subject: Re: Python for Windows reports wrong local time when run under Cygwin
 on Europe/Moscow TZ
To: L A Walsh <cygwin@tlinx.org>, "cygwin@cygwin.com" <cygwin@cygwin.com>
References: <5542c19d-8b1a-1f28-2003-fe9493ee9b56@mail.ru>
 <60BF5677.9060904@tlinx.org>
Message-ID: <97024d79-16b2-98a0-d20a-b3e6915ad0d0@mail.ru>
Date: Tue, 8 Jun 2021 15:28:29 +0300
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <60BF5677.9060904@tlinx.org>
Content-Language: en-US
X-7564579A: 646B95376F6C166E
X-77F55803: 4F1203BC0FB41BD9D5B0DA836B685C540E30C2BDD69416C6E46C178CD572CB10182A05F538085040D9A2BD50F60BCE34A6C562F0BE7DD4E9FFEE09B6AFB00B4CDD55EF6FFA224555
X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE70043D879A87EF1BCEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637ECAF4C2CEE0D0B2F8638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D84940E8961D396717B06FFCE749420C986F9789CCF6C18C3F8528715B7D10C86878DA827A17800CE7CCEADDFEB1F9DC069FA2833FD35BB23D9E625A9149C048EE33AC447995A7AD18CB629EEF1311BF91D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8B8C7ADC89C2F0B2A5A471835C12D1D977C4224003CC836476EB9C4185024447017B076A6E789B0E975F5C1EE8F4F765FCCE5DC8AA6445F4393AA81AA40904B5D9CF19DD082D7633A078D18283394535A93AA81AA40904B5D98AA50765F7900637EB52220108A1A954D81D268191BDAD3D698AB9A7B718F8C4D1B931868CE1C5781A620F70A64A45A98AA50765F79006372E808ACE2090B5E1725E5C173C3A84C3C5EA940A35A165FF2DBA43225CD8A89F616AD31D0D18CD5C5E1C53F199C2BB95B5C8C57E37DE458BEDA766A37F9254B7
X-C1DE0DAB: 0D63561A33F958A580BE55E5CF115ED212A29D60B47C26E79049CC2F4EB980A9D59269BC5F550898D99A6476B3ADF6B47008B74DF8BB9EF7333BD3B22AA88B938A852937E12ACA75A42E9C66FC9EA4CF410CA545F18667F91A7EA1CDA0B5A7A0
X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D3467D08F30473A58425080B1A9DD9CB9E1EE8C209C7E0E39CE4BA87CF0966BE40EF26D3885B7701DB51D7E09C32AA3244C2E155286BE28439D156744C73C4BDE0F24AF4FAF06DA24FD729B2BEF169E0186
X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojvdTwgM2ZyZmTmXHW/c0kVg==
X-Mailru-Sender: 00097D31F91C944B962E58D3528817577374060B1A47A3DC3866D6098AC87767E054621235E2F77C8D3DB682BF6F1158E66B5C1DBFD5D09D046C2275A8D60F931CD745D6427E807167EA787935ED9F1B
X-Mras: Ok
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
 RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, 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
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
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>
From: Mike Kaganski via Cygwin <cygwin@cygwin.com>
Reply-To: Mike Kaganski <mikekaganski@mail.ru>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 158CT7EP004910

On 08.06.2021 14:37, L A Walsh wrote:
> On 2021/06/06 23:59, Mike Kaganski via Cygwin wrote:
>> Hello,
>>
>> Running Cygwin 3.1.7-1 on Windows 10 Version 21H1 (OS Build 
>> 19043.985), I have this issue:
>>
>> when I start Cygwin's Python, I have correct time reported:
>>
>> But running Python for Windows (it doesn't matter which, specifically 
>> for the test I used the one from MS Store [1]), I have incorrect 
>> local time
>
> Why are you reporting a problem in Windows-Python on a cygwin
> list, especially when the cygwin python runs correctly? Admittedly
> I'd be more interested to know what happened in perl, but doubt
> MS wants to try supporting that can of worms.
>
> ...
>
> Anyway, I assume you reported it here just to amuse cygwin users
> at MS's Win-Python?  ;-)

No, I report a problem that a native program runs incorrectly *under 
Cygwin*, because Cygwin is indeed part of the picture, and being not a 
prophet, I can't know in advance if the actual bug lies in Windows, in 
Python, or in Cygwin interaction with them. And I assume that Cygwin is 
not declaring that its users "must never run native applications from 
Cygwin", so I find that passage above inappropriate and off-topic.

> Though as to why -- likely the windows version is getting time zone
> clues + correction from BOTH cygwin and Windows, like it's told its
> in a TZ that is at 1 time, while Windows feeds it other data that
> says it is 2 hours off from the default. 
Maybe. It's OK if no one here knows the reason - I of course don't 
expect anyone here obliged to give an answer. My question was intended 
to ask if someone (e.g., a Cygwin dev) somehow can see the problem from 
their expertise, and - maybe - even know how to fix it. Maybe there's 
some technique how to workaround this problem - and even if it's not a 
Cygwin's bug, it still could be useful for Cygwin users, hence still the 
post to the list, accompanied by someone's workaround, would be 
reasonable and useful.


-- 

Best regards,

Mike Kaganski


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

