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

From: Nikolay Ivanov <[email-masked]>
Date: Mon, 13 Apr 2020 16:06:20 +0300

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.