Files
freeipa/ipaserver/plugins
Alexander Bokovoy 1f6ca418ee handle Y2038 in timestamp to datetime conversions
According to datetime.utcfromtimestamp() method documentation[1],
this and similar methods fail for dates past 2038 and can be replaced by
the following expression on the POSIX compliant systems:

  datetime(1970, 1, 1, tzinfo=timezone.utc) + timedelta(seconds=timestamp)

Make sure to use a method that at least allows to import the timestamps
properly to datetime objects on 32-bit platforms.

[1] https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp

Fixes: https://pagure.io/freeipa/issue/8378

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2020-06-25 09:18:02 +03:00
..
2010-12-20 17:19:53 -05:00
2017-03-27 19:08:26 +02:00
2020-06-15 22:44:42 +03:00
2019-06-18 10:36:24 +10:00
2018-01-09 07:53:28 +01:00
2019-10-21 18:01:32 +11:00
2019-10-21 18:01:32 +11:00
2019-03-28 00:21:00 +01:00
2020-06-15 22:44:42 +03:00
2020-03-31 09:21:37 +03:00
2018-01-09 07:53:28 +01:00
2018-10-05 12:06:19 +02:00
2020-05-05 10:42:46 +02:00
2020-05-05 10:42:46 +02:00
2017-09-08 15:42:07 +02:00
2020-06-15 22:44:42 +03:00
2019-03-28 00:21:00 +01:00