From f1e9ecf15cc32b916345ebab8ce1b5c729e57080 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 25 Jul 2019 14:39:13 -0400 Subject: [PATCH] Fix event log date processing Event log was incorrectly processing. Change-Id: Ibaac463eb9ca537daa818ac60da1539f41e72c61 --- pyghmi/redfish/command.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 68af963d..245601ef 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -1338,10 +1338,9 @@ class Command(object): if parsedtime: entime = parsedtime + correction entime = entime.astimezone(ltz) - entime = entime.strftime('%Y-%m-%dT%H:%M:%S') + record['timestamp'] = entime.strftime('%Y-%m-%dT%H:%M:%S') else: record['timestamp'] = log.get('Created', '') - record['timestamp'] = entime.strftime('%Y-%m-%dT%H:%M:%S') record['message'] = log.get('Message', None) record['severity'] = _healthmap.get( entries.get('Severity', 'Warning'), const.Health.Critical)