From 638f879f16c9e87edb60953f4fd0b1c7ad92f277 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 1 Apr 2021 11:21:27 -0700 Subject: [PATCH] use new timestamp class --- jc/parsers/dig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jc/parsers/dig.py b/jc/parsers/dig.py index 929038cf..fee1f096 100644 --- a/jc/parsers/dig.py +++ b/jc/parsers/dig.py @@ -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