mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
use new timestamp class
This commit is contained in:
@ -465,8 +465,9 @@ def process(proc_data):
|
|||||||
entry['query_time'] = None
|
entry['query_time'] = None
|
||||||
|
|
||||||
if 'when' in entry:
|
if 'when' in entry:
|
||||||
entry['when_epoch'] = jc.utils.parse_datetime_to_timestamp(entry['when'])['timestamp_naive']
|
ts = jc.utils.timestamp(entry['when'])
|
||||||
entry['when_epoch_utc'] = jc.utils.parse_datetime_to_timestamp(entry['when'])['timestamp_utc']
|
entry['when_epoch'] = ts.naive
|
||||||
|
entry['when_epoch_utc'] = ts.utc
|
||||||
|
|
||||||
return proc_data
|
return proc_data
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user