Replace usage of utcnow()

`datetime.utcnow()` deprecated in Python 3.12
This commit is contained in:
JonnyWong16 2023-11-21 11:35:54 -08:00
parent d0c1e467bd
commit ddc8a08fc7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 7 additions and 7 deletions

View file

@ -378,7 +378,7 @@ class AuthController(object):
if valid_login:
time_delta = timedelta(days=30) if remember_me == '1' else timedelta(minutes=60)
expiry = datetime.utcnow() + time_delta
expiry = datetime.now() + time_delta
payload = {
'user_id': user_details['user_id'],