1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-13 01:20:24 +02:00

use new timestamp class

This commit is contained in:
Kelly Brazil
2021-04-01 11:21:27 -07:00
parent 1d221bf7e6
commit 638f879f16

View File

@ -465,8 +465,9 @@ def process(proc_data):
entry['query_time'] = None
if 'when' in entry:
entry['when_epoch'] = jc.utils.parse_datetime_to_timestamp(entry['when'])['timestamp_naive']
entry['when_epoch_utc'] = jc.utils.parse_datetime_to_timestamp(entry['when'])['timestamp_utc']
ts = jc.utils.timestamp(entry['when'])
entry['when_epoch'] = ts.naive
entry['when_epoch_utc'] = ts.utc
return proc_data