From e17937a13a3b903f6e5971854671835dbe8ff68d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 25 Jan 2018 19:22:53 +0100 Subject: openpgp: Fix reading time_t timestamps as UTC --- gemato/openpgp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemato/openpgp.py b/gemato/openpgp.py index 63890f0..1f3d72e 100644 --- a/gemato/openpgp.py +++ b/gemato/openpgp.py @@ -77,7 +77,7 @@ class OpenPGPSystemEnvironment(object): # no timestamp return None else: - return datetime.datetime.fromtimestamp(int(ts)) + return datetime.datetime.utcfromtimestamp(int(ts)) def verify_file(self, f): """ -- cgit v1.2.3