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:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user