fix: Update to use old timezone format

This commit is contained in:
Nathan Woodburn 2025-02-25 11:53:37 +11:00
parent 0c08f11f6e
commit 15caf7ce4f
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 3 additions and 2 deletions

View File

@ -3,4 +3,5 @@ gunicorn
requests
python-dotenv
dnspython
cryptography
cryptography
datetime

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