summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-01-25 19:22:53 +0100
committerMichał Górny <mgorny@gentoo.org>2018-01-25 19:22:53 +0100
commite17937a13a3b903f6e5971854671835dbe8ff68d (patch)
treebf1658b38c23d2cb1f6961ee2463fc9c1ba76c8a
parente78301bbed8996fe31fc56edf22d925eef5ec8f0 (diff)
downloadgemato-e17937a13a3b903f6e5971854671835dbe8ff68d.tar.gz
openpgp: Fix reading time_t timestamps as UTC
-rw-r--r--gemato/openpgp.py2
1 files changed, 1 insertions, 1 deletions
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):
"""