Decode timestamps from the previous review tool as being in UTC

- Legacy-Id: 12349
This commit is contained in:
Ole Laursen 2016-11-14 14:11:36 +00:00
parent e171aa657e
commit 4826de8c5e

View file

@ -43,9 +43,10 @@ def namedtuplefetchall(cursor):
return (nt_result(*row) for row in cursor.fetchall())
def parse_timestamp(t):
import time
if not t:
return None
return datetime.datetime.fromtimestamp(t)
return datetime.datetime(*time.gmtime(t)[:6])
# personnel
with db_con.cursor() as c: