[pyderasn-devel] [Bug] UTCTime with offset-aware datetimes fails equality check

From: Nikolay Ivanov <nekolyanich_at_domain.hidden>
Date: Mon, 13 Apr 2020 16:06:20 +0300
Message-ID: <c2c36056-8910-509f-c4f7-b7d1f104b8b1_at_domain.hidden>
Pyderasn Version: 7.7

Steps to reproduce:

dt = datetime(1990, 1, 1, 0, 0, tzinfo=tzutc())

ut = UTCTime(dt)

nut = UTCTime().decod(ut.encode())

ut == nut

>>> False

GeneralizedTime also fails this check.
Received on 2020-04-13 13:06:20 UTC

This archive was generated by hypermail 2.4.0 : 2021-02-19 09:13:29 UTC