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