Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-12 Thread Ken Brown via Cygwin
On 6/12/2021 12:34 PM, Brian Inglis wrote: On 2021-06-11 12:05, Ken Brown via Cygwin wrote: On 6/11/2021 1:33 PM, Brian Inglis wrote: On 2021-06-10 13:50, Ken Brown via Cygwin wrote: On 6/10/2021 2:31 PM, Brian Inglis wrote: On 2021-06-10 08:57, Ken Brown via Cygwin wrote: On 6/9/2021 10:36

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-12 Thread Brian Inglis
On 2021-06-11 12:05, Ken Brown via Cygwin wrote: On 6/11/2021 1:33 PM, Brian Inglis wrote: On 2021-06-10 13:50, Ken Brown via Cygwin wrote: On 6/10/2021 2:31 PM, Brian Inglis wrote: On 2021-06-10 08:57, Ken Brown via Cygwin wrote: On 6/9/2021 10:36 PM, Brian Inglis wrote: On 2021-06-09 16:31

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-11 Thread Ken Brown via Cygwin
On 6/11/2021 1:33 PM, Brian Inglis wrote: On 2021-06-10 13:50, Ken Brown via Cygwin wrote: On 6/10/2021 2:31 PM, Brian Inglis wrote: On 2021-06-10 08:57, Ken Brown via Cygwin wrote: On 6/9/2021 10:36 PM, Brian Inglis wrote: On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: [Sorry if the

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-11 Thread Brian Inglis
On 2021-06-10 13:50, Ken Brown via Cygwin wrote: On 6/10/2021 2:31 PM, Brian Inglis wrote: On 2021-06-10 08:57, Ken Brown via Cygwin wrote: On 6/9/2021 10:36 PM, Brian Inglis wrote: On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: [Sorry if the threading is messed up.  I don't subscribe,

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-11 Thread Ken Brown via Cygwin
On 6/11/2021 1:38 AM, ASSI wrote: Ken Brown via Cygwin writes: Can you be more specific? What goes wrong if TZ is not set? I haven't seen any POSIX or Linux documentation that says it should be set, and I've just checked on two different Linux distros that it's not set by default. The script

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-11 Thread Andrey Repin via Cygwin
Greetings, Brian Inglis! > On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: >> [Sorry if the threading is messed up. I don't subscribe, so I'm >> constructing this message from the web interface. It should at least >> show up under the correct subject.] You can always reply to your own mes

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-10 Thread Mike Kaganski via Cygwin
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

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-10 Thread ASSI
Ken Brown via Cygwin writes: > Can you be more specific? What goes wrong if TZ is not set? I > haven't seen any POSIX or Linux documentation that says it should be > set, and I've just checked on two different Linux distros that it's > not set by default. The scripts in base-files were introduce

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-10 Thread Ken Brown via Cygwin
On 6/10/2021 2:31 PM, Brian Inglis wrote: On 2021-06-10 08:57, Ken Brown via Cygwin wrote: On 6/9/2021 10:36 PM, Brian Inglis wrote: On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: [Sorry if the threading is messed up.  I don't subscribe, so I'm constructing this message from the web int

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-10 Thread Brian Inglis
On 2021-06-10 08:57, Ken Brown via Cygwin wrote: On 6/9/2021 10:36 PM, Brian Inglis wrote: On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: [Sorry if the threading is messed up.  I don't subscribe, so I'm constructing this message from the web interface.  It should at least show up under t

RE: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-10 Thread KAVALAGIOS Panagiotis (EEAS-EXT)
> -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

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-10 Thread Ken Brown via Cygwin
On 6/9/2021 10:36 PM, Brian Inglis wrote: On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: [Sorry if the threading is messed up.  I don't subscribe, so I'm constructing this message from the web interface.  It should at least show up under the correct subject.] Brian Inglis wrote: On 2021

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-09 Thread Brian Inglis
On 2021-06-09 16:31, Keith Thompson via Cygwin wrote: [Sorry if the threading is messed up. I don't subscribe, so I'm constructing this message from the web interface. It should at least show up under the correct subject.] Brian Inglis wrote: On 2021-06-08 14:03, Mike Kaganski via Cygwin wrot

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-09 Thread Keith Thompson via Cygwin
[Sorry if the threading is messed up. I don't subscribe, so I'm constructing this message from the web interface. It should at least show up under the correct subject.] Brian Inglis wrote: > On 2021-06-08 14:03, Mike Kaganski via Cygwin wrote: > > On 08.06.2021 16:04, L A Walsh wrote: > >> You m

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Brian Inglis
On 2021-06-08 14:03, Mike Kaganski via Cygwin wrote: On 08.06.2021 16:04, L A Walsh wrote: You might ask on a python list if anyone else has experienced something similar with python or any other program.  I'm fairly sure that neither MS nor cygwin design their OS with python in mind and that it

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Brian Inglis
On 2021-06-08 11:37, Keith Thompson via Cygwin wrote: There is a known problem with the $TZ environment variable. Here's a discussion from 2017: https://cygwin.com/pipermail/cygwin/2017-May/232675.html The problem is that both Cygwin and Windows use the $TZ environment variable, but they interp

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Mike Kaganski via Cygwin
On 08.06.2021 16:04, L A Walsh wrote: You might ask on a python list if anyone else has experienced something similar with python or any other program.  I'm fairly sure that neither MS nor cygwin design their OS with python in mind and that it is python that is interacting funny when running unde

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Keith Thompson via Cygwin
There is a known problem with the $TZ environment variable. Here's a discussion from 2017: https://cygwin.com/pipermail/cygwin/2017-May/232675.html The problem is that both Cygwin and Windows use the $TZ environment variable, but they interpret it differently. The Windows handling of $TZ (or %TZ

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread L A Walsh
On 2021/06/08 07:10, Mike Kaganski wrote: so any "answers" like yours "why do you ask here" are off-topic. --- But what most people dont' see -- I didn't say you *shouldn't* post here, I asked why when the evidence suggested the problem was python reading TZ info from 2 sources -- like config

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Mike Kaganski via Cygwin
On 08.06.2021 16:57, L A Walsh wrote:     You aren't getting that answering questions *IS* a form of support. LOL. Please see how I do this support: https://ask.libreoffice.org/en/users/ I know it all. I answer others' questions. What I was talking about was that I didn't demand, and didn't e

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread L A Walsh
On 2021/06/08 06:30, Mike Kaganski wrote: First of all - please stop telling me that I required support. I didn't demand anything, and was asking *in the hope*, but without any wrong expectations that anyone owes anything here. --- Have you ever heard the statement "asking is poli

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Mike Kaganski via Cygwin
On 08.06.2021 16:04, L A Walsh wrote: Look in its environment and remove any thing for timezone and try that. Thanks to this great suggestion, I was able to workaround this problem - thanks! Wrong result (using the TZ present in environment, i.e. TZ=Europe/Moscow): $ "C:/Program Files/Win

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Mike Kaganski via Cygwin
On 08.06.2021 16:04, L A Walsh wrote: On 2021/06/08 05:28, Mike Kaganski wrote: No, I report a problem that a native program runs incorrectly *under Cygwin*, because Cygwin is indeed part of the picture. --- The problem is in the MS-Win term program.  If you report it to them and tell the

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread L A Walsh
On 2021/06/08 05:28, Mike Kaganski wrote: No, I report a problem that a native program runs incorrectly *under Cygwin*, because Cygwin is indeed part of the picture. --- The problem is in the MS-Win term program. If you report it to them and tell them it only misbehaves when you have

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Mike Kaganski via Cygwin
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

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread L A Walsh
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 te

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-08 Thread Mike Kaganski via Cygwin
On 08.06.2021 7:34, Russell VT wrote: What version(s) of the timezone files are installed on each? Cygwin: $ cygcheck -c | grep tz tzcode 2021a-1 OK tzdata 2021a-1 OK Windows: I didn't find a TZ-specific update KB in the list of installed upd

Re: Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-07 Thread Russell VT via Cygwin
What version(s) of the timezone files are installed on each? Also, seems one of the Python versions came from Windows, rather than Cygwin? On Mon, Jun 7, 2021 at 12:01 AM Mike Kaganski via Cygwin wrote: > Hello, > > Running Cygwin 3.1.7-1 on Windows 10 Version 21H1 (OS Build 19043.985), > I h

Python for Windows reports wrong local time when run under Cygwin on Europe/Moscow TZ

2021-06-07 Thread Mike Kaganski via Cygwin
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: mikek@DESKTOP-8SHAE9Q ~ $ python Python 3.8.9 (default, Apr 21 2021, 23:14:29) [GCC 10.2.0] on cygwin Type "help", "copyright", "credi