Fix object comparision

This commit is contained in:
Markus Opolka 2024-06-28 14:40:19 +02:00
parent b920a65afd
commit 5c4a955abd

View File

@ -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