diff --git a/admyral/utils/time.py b/admyral/utils/time.py index 4e48e2fc..646edd88 100644 --- a/admyral/utils/time.py +++ b/admyral/utils/time.py @@ -1,9 +1,9 @@ -from datetime import datetime +from datetime import datetime, timezone def utc_now() -> datetime: - return datetime.utcnow() + return datetime.now(timezone.utc) def utc_now_timestamp_seconds() -> int: - return int(datetime.utcnow().timestamp()) + return int(datetime.now(timezone.utc).timestamp())