From 60ea71f0ef931dccf09e6eb0cb737ddad0b47f0c Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Thu, 1 Apr 2021 11:18:03 -0700 Subject: [PATCH] use new timestamp class --- jc/parsers/timedatectl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jc/parsers/timedatectl.py b/jc/parsers/timedatectl.py index 438e310c..4f13aa64 100644 --- a/jc/parsers/timedatectl.py +++ b/jc/parsers/timedatectl.py @@ -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