Skip to content

Commit

Permalink
Deprecation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
na-stewart committed Jun 13, 2024
1 parent 2f094e2 commit 09ad0a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic_security/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_expiration_date(seconds: int) -> datetime.datetime:
expiration_date
"""
return (
datetime.datetime.utcnow() + datetime.timedelta(seconds=seconds)
datetime.datetime.now(datetime.UTC) + datetime.timedelta(seconds=seconds)
if seconds > 0
else None
)

0 comments on commit 09ad0a6

Please sign in to comment.