Message334132
Steps to reproduce the bug:
```
>>> import sys
>>> sys.version
'3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]'
>>> import datetime
>>> print(datetime.datetime.now().astimezone().tzinfo)
datetime.timezone(datetime.timedelta(0, 3600), 'Central European Standard Time')
>>> import time
>>> time.localtime(0)
time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=1, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)
>>> time.localtime(-1)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument
```
On Ubuntu it works fine:
```
>>> time.localtime(-1)
time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=59, tm_sec=59, tm_wday=3, tm_yday=1, tm_isdst=0)
``` |
|
Date |
User |
Action |
Args |
2019-01-21 11:32:23 | mba | set | recipients:
+ mba, paul.moore, tim.golden, zach.ware, steve.dower |
2019-01-21 11:32:19 | mba | set | messageid: <1548070339.94.0.0791021620364.issue35796@roundup.psfhosted.org> |
2019-01-21 11:32:19 | mba | link | issue35796 messages |
2019-01-21 11:32:19 | mba | create | |
|