change utc date retrieval

This commit is contained in:
aj 2020-05-16 10:55:05 +01:00
parent e498e97cc0
commit fbd8b3eeb7

View File

@ -49,7 +49,7 @@ class NetworkUser(User):
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)
if 200 <= req.status_code < 300: