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 p-ganssle
Recipients SilentGhost, Steven Davidson, anglister, belopolsky, lemburg, p-ganssle, serhiy.storchaka, skrah, vstinner
Date 2019-02-27.16:53:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551286392.99.0.235963007367.issue23607@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure if either of these patches got merged, but at some point this was fixed:

    Python 3.7.2 (default, Feb  9 2019, 13:18:43) 
    [GCC 8.2.1 20181127] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from datetime import datetime
    >>> from decimal import Decimal
    >>> datetime.utcfromtimestamp(Decimal(123456.0))
    datetime.datetime(1970, 1, 2, 10, 17, 36)


I recommend that someone add some regression tests to this, then we can close the issue.

I'm also going to mark this as "easy" since adding tests for this particular example should be pretty simple.
History
Date User Action Args
2019-02-27 16:53:13p-gansslesetrecipients: + p-ganssle, lemburg, belopolsky, vstinner, SilentGhost, skrah, serhiy.storchaka, anglister, Steven Davidson
2019-02-27 16:53:12p-gansslesetmessageid: <1551286392.99.0.235963007367.issue23607@roundup.psfhosted.org>
2019-02-27 16:53:12p-gansslelinkissue23607 messages
2019-02-27 16:53:12p-gansslecreate