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 joris.geysens
Recipients eric.smith, joris.geysens
Date 2022-02-25.21:38:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645825137.61.0.154118200722.issue46856@roundup.psfhosted.org>
In-reply-to
Content
I see this in the python source code being tested (datetimetester.py), so I guess it is a rounding problem : 

# maximum timestamp: set seconds to zero to avoid rounding issues
        max_dt = self.theclass.max.replace(tzinfo=timezone.utc,
                                           second=0, microsecond=0)
        max_ts = max_dt.timestamp()
        # date 9999-12-31 23:59:00+00:00: timestamp 253402300740
        self.assertEqual(self.theclass.fromtimestamp(max_ts, tz=timezone.utc),
                         max_dt)
History
Date User Action Args
2022-02-25 21:38:57joris.geysenssetrecipients: + joris.geysens, eric.smith
2022-02-25 21:38:57joris.geysenssetmessageid: <1645825137.61.0.154118200722.issue46856@roundup.psfhosted.org>
2022-02-25 21:38:57joris.geysenslinkissue46856 messages
2022-02-25 21:38:57joris.geysenscreate