change utc date retrieval
This commit is contained in:
parent
e498e97cc0
commit
fbd8b3eeb7
@ -49,7 +49,7 @@ class NetworkUser(User):
|
|||||||
|
|
||||||
data = {"grant_type": "refresh_token", "refresh_token": self.refresh_token}
|
data = {"grant_type": "refresh_token", "refresh_token": self.refresh_token}
|
||||||
|
|
||||||
now = datetime.now(timezone.utc)
|
now = datetime.utcnow()
|
||||||
req = requests.post('https://accounts.spotify.com/api/token', data=data, headers=headers)
|
req = requests.post('https://accounts.spotify.com/api/token', data=data, headers=headers)
|
||||||
|
|
||||||
if 200 <= req.status_code < 300:
|
if 200 <= req.status_code < 300:
|
||||||
|
Loading…
Reference in New Issue
Block a user