fix: Update to use old timezone format
All checks were successful
Build Docker / BuildImage (push) Successful in 1m20s

This commit is contained in:
2025-02-25 11:53:37 +11:00
parent 0c08f11f6e
commit 15caf7ce4f
2 changed files with 3 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ def check_ssl(domain: str):
expiry_date = cert_obj.not_valid_after_utc
# Check if expiry date is past
if expiry_date < datetime.datetime.now(tz=datetime.UTC):
if expiry_date < datetime.datetime.now(datetime.timezone.utc):
returns["cert"]["expired"] = True
returns["cert"]["valid"] = False