Merge pull request #292 from dkg/sigtime-utc

When Signature Creation Time is supplied, use UTC
This commit is contained in:
Michael Greene
2019-10-26 10:07:57 -07:00
committed by GitHub
2 changed files with 46 additions and 1 deletions

View File

@@ -242,7 +242,7 @@ class CreationTime(Signature):
def __bytearray__(self):
_bytes = super(CreationTime, self).__bytearray__()
_bytes += self.int_to_bytes(calendar.timegm(self.created.timetuple()), 4)
_bytes += self.int_to_bytes(calendar.timegm(self.created.utctimetuple()), 4)
return _bytes
def parse(self, packet):