[issue31327] bug in dateutil\tz\tz.py

2019-03-28 Thread Paul Ganssle
Paul Ganssle added the comment: Can we change the title of this to something like, "Add example of platform-specific support for negative timestamps to the time documentation"? That might be a bit wordy, but as it is now, this looks like it's reporting a bug in dateutil, which is not part of

[issue31327] bug in dateutil\tz\tz.py

2019-03-28 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: sorry for the spam, I wanted to be removed from the noisy list via the mail gateway but my two tests did not work :/ -- ___ Python tracker

[issue31327] bug in dateutil\tz\tz.py

2019-03-28 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: -- nosy: -matrixise -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31327] bug in dateutil\tz\tz.py

2019-03-28 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: nosy: -matrixise -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31327] bug in dateutil\tz\tz.py

2019-03-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31327] bug in dateutil\tz\tz.py

2019-03-27 Thread Cheryl Sabella
Change by Cheryl Sabella : -- stage: -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.6 ___ Python tracker ___ ___

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is this similar to issue 29097? -- ___ Python tracker ___

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Tim Peters
Tim Peters added the comment: I'll just add that it may be a different issue to argue about how `_naive_is_dst()` is implemented. -- nosy: +belopolsky ___ Python tracker

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you, I will provide a PR for this issue and close it once it's over. -- ___ Python tracker

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Tim Peters
Tim Peters added the comment: Since this is a pretty common gotcha, I'd prefer to add it as an example to the text I already quoted; e.g., add: """ For example, the native Windows C libraries do not support times before the epoch, and `localtime(n)` for negative `n` raises

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you Tim, In this case, the documentation seems to be correct, maybe we could close this issue because it's independent of Python. What's your opinion on this point? Close it or Improve the documentation? --

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Tim Peters
Tim Peters added the comment: The docs for the `time` module say: """ Although this module is always available, not all functions are available on all platforms. Most of the functions defined in this module call platform C library functions with the same name. It may

[issue31327] bug in dateutil\tz\tz.py

2017-10-11 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Steve, I have added you on this issue because it's related to Windows. Maybe you could check it. -- nosy: +matrixise, steve.dower ___ Python tracker

[issue31327] bug in dateutil\tz\tz.py

2017-09-04 Thread Louie Lu
Louie Lu added the comment: Using macOS and Linux can't reproduce this problem, both platform return this output: >>> import time >>> time.localtime(-3600) time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=7, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0) -- nosy:

[issue31327] bug in dateutil\tz\tz.py

2017-09-01 Thread Jerry Kramskoy
New submission from Jerry Kramskoy: Running python 3.6.2 on Windows 10. The following method causes presents a timetstamp value of -3600 (i.e. DST adjustment of one hour) which causes time.localtime() to raise an OS Errno 22. def _naive_is_dst(self, dt): timestamp =