mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 21:51:14 -07:00
Replace usage of utcnow()
`datetime.utcnow()` deprecated in Python 3.12
This commit is contained in:
parent
d0c1e467bd
commit
ddc8a08fc7
2 changed files with 7 additions and 7 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue