SilentGhost <ghost....@runbox.com> added the comment: Yes, I was also able to verify this issue on 3.8.2 on win10. Argument to astimezone is not required, and this happens for both naïve and aware objects.
---------- nosy: +belopolsky, p-ganssle resolution: duplicate -> stage: resolved -> test needed status: closed -> open superseder: [Windows] datetime.fromtimestamp(t) when 0 <= t <= 86399 fails on Python 3.6 -> title: datetime: astimezone() results in OSError: [Errno 22] Invalid argument -> astimezone() fails on Windows for pre-epoch times versions: +Python 3.8, Python 3.9 -Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com