[issue38645] datetime.datetime.fromtimestamp(0, tzlocal()) throws error

Dong-hee Na report at bugs.python.org
Thu Oct 31 21:56:14 EDT 2019


Dong-hee Na <donghee.na92 at gmail.com> added the comment:

Python 3.9.0a0 (heads/master:112f2b805b, Nov  1 2019, 10:48:20)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> utc_tzinfo = datetime.timezone.utc
>>> print(datetime.datetime.fromtimestamp(0, utc_tzinfo))
1970-01-01 00:00:00+00:00

works properly on my Linux machine.
Can you gave me which can reproduce based on stdlib library?

----------
nosy: +corona10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38645>
_______________________________________


More information about the Python-bugs-list mailing list