Message414043
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) |
|
Date |
User |
Action |
Args |
2022-02-25 21:38:57 | joris.geysens | set | recipients:
+ joris.geysens, eric.smith |
2022-02-25 21:38:57 | joris.geysens | set | messageid: <1645825137.61.0.154118200722.issue46856@roundup.psfhosted.org> |
2022-02-25 21:38:57 | joris.geysens | link | issue46856 messages |
2022-02-25 21:38:57 | joris.geysens | create | |
|