mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2026-02-05 22:55:15 +01:00
Fix object comparision
This commit is contained in:
@@ -369,7 +369,7 @@ class JsonRuleProcessor:
|
|||||||
|
|
||||||
now = datetime.now(timezone.utc)
|
now = datetime.now(timezone.utc)
|
||||||
|
|
||||||
if timestamp.tzinfo == None:
|
if timestamp.tzinfo is None:
|
||||||
timestamp = timestamp.replace(tzinfo=timezone.utc)
|
timestamp = timestamp.replace(tzinfo=timezone.utc)
|
||||||
|
|
||||||
age = now - timestamp
|
age = now - timestamp
|
||||||
|
|||||||
Reference in New Issue
Block a user