1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-23 00:29:59 +02:00

use new timestamp class

This commit is contained in:
Kelly Brazil
2021-04-01 11:19:49 -07:00
parent 60ea71f0ef
commit 1d221bf7e6

View File

@ -171,7 +171,8 @@ def process(proc_data):
entry[key] = None entry[key] = None
if 'time' in entry: if 'time' in entry:
entry['epoch'] = jc.utils.parse_datetime_to_timestamp(entry['time'])['timestamp_naive'] ts = jc.utils.timestamp(entry['time'])
entry['epoch'] = ts.naive
return proc_data return proc_data