mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-23 19:03:49 +01:00
Fix object comparision
This commit is contained in:
parent
b920a65afd
commit
5c4a955abd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user