freeipa/ipaserver/dnssec
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
..
__init__.py ipapython: move dnssec, p11helper and secrets to ipaserver 2016-11-29 14:50:51 +01:00
_ods14.py opendnssec2.1 support: move all ods tasks to specific file 2020-03-12 21:48:25 +01:00
_ods21.py handle Y2038 in timestamp to datetime conversions 2020-06-25 09:18:02 +03:00
_odsbase.py Support OpenDNSSEC 2.1: new ods-signer protocol 2020-03-12 21:48:25 +01:00
abshsm.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
bindmgr.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
keysyncer.py Add absolute_import future imports 2018-04-20 09:43:37 +02:00
ldapkeydb.py Import ABCs from collections.abc 2018-07-05 19:45:10 +02:00
localhsm.py Cleanup shebang and executable bit 2018-07-05 19:46:42 +02:00
odsmgr.py opendnssec2.1 support: move all ods tasks to specific file 2020-03-12 21:48:25 +01:00
opendnssec.py opendnssec2.1 support: move all ods tasks to specific file 2020-03-12 21:48:25 +01:00
syncrepl.py Fix pylint 2.0 return-related violations 2018-07-11 10:11:38 +02:00
temp.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00