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

use new timestamp class

This commit is contained in:
Kelly Brazil
2021-04-01 11:18:03 -07:00
parent d8bdd35a3f
commit 60ea71f0ef

View File

@ -101,7 +101,8 @@ def process(proc_data):
proc_data[key] = None
if 'universal_time' in proc_data:
proc_data['epoch_utc'] = jc.utils.parse_datetime_to_timestamp(proc_data['universal_time'])['timestamp_utc']
ts = jc.utils.timestamp(proc_data['universal_time'])
proc_data['epoch_utc'] = ts.utc
return proc_data