1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-17 01:32:37 +02:00

use new timestamp class

This commit is contained in:
Kelly Brazil
2021-04-01 11:17:53 -07:00
parent 7463891c53
commit d8bdd35a3f

View File

@ -212,8 +212,9 @@ def process(proc_data):
if key in entry:
if entry[key] == '-':
entry[key] = None
entry[key + '_epoch'] = jc.utils.parse_datetime_to_timestamp(entry[key])['timestamp_naive']
entry[key + '_epoch_utc'] = jc.utils.parse_datetime_to_timestamp(entry[key])['timestamp_utc']
ts = jc.utils.timestamp(entry[key])
entry[key + '_epoch'] = ts.naive
entry[key + '_epoch_utc'] = ts.utc
return proc_data