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 serhiy.storchaka
Recipients belopolsky, serhiy.storchaka
Date 2017-10-29.21:10:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1509311445.47.0.213398074469.issue31894@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./python -m test -vuall test_datetime
...
======================================================================
FAIL: test_timestamp_naive (test.datetimetester.TestDateTime_Pure)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython3.7/Lib/test/support/__init__.py", line 1622, in inner
    return func(*args, **kwds)
  File "/home/serhiy/py/cpython3.7/Lib/test/datetimetester.py", line 1977, in test_timestamp_naive
    self.assertEqual(t.timestamp(), 18000.0)
AssertionError: 14400.0 != 18000.0


...

Simple reproducer:

$ TZ=EST+05EDT,M3.2.0,M11.1.0 ./python -c 'import datetime; print(datetime.datetime(1970, 1, 1).timestamp())'
14400.0

It should print 18000.0 (5 hours) instead of 14400.0 (4 hours).
History
Date User Action Args
2017-10-29 21:10:45serhiy.storchakasetrecipients: + serhiy.storchaka, belopolsky
2017-10-29 21:10:45serhiy.storchakasetmessageid: <1509311445.47.0.213398074469.issue31894@psf.upfronthosting.co.za>
2017-10-29 21:10:45serhiy.storchakalinkissue31894 messages
2017-10-29 21:10:44serhiy.storchakacreate