This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mzhang13
Recipients mzhang13
Date 2019-10-30.15:07:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572448045.56.0.183251608823.issue38645@roundup.psfhosted.org>
In-reply-to
Content
Discovered this while trying to use a function in `boto3`. Seems like when tzlocal() is passed with a 0 to datetime.datetime.fromtimestamp(), it throws an "[Errno 22] Invalid argument" error. Using 3.7.4 via Anaconda on Windows 10, and tzlocal().tznames's local timezone for me is EST/EDT.

Can replicate through this:
```
import datetime
from dateutil.tz import tzlocal

print(datetime.datetime.fromtimestamp(0, tzlocal()))
```
History
Date User Action Args
2019-10-30 15:07:25mzhang13setrecipients: + mzhang13
2019-10-30 15:07:25mzhang13setmessageid: <1572448045.56.0.183251608823.issue38645@roundup.psfhosted.org>
2019-10-30 15:07:25mzhang13linkissue38645 messages
2019-10-30 15:07:25mzhang13create