Decode timestamps from the previous review tool as being in UTC
- Legacy-Id: 12349
This commit is contained in:
parent
e171aa657e
commit
4826de8c5e
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue