Open n2ygk opened 2 months ago
See also py312-dj41
etc. which raises this additional DeprecationWarning related to python 3.12:
tests/test_introspection_auth.py: 10 warnings
/Users/ac45/src/django-oauth-toolkit/oauth2_provider/oauth2_validators.py:412: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
expires = datetime.utcfromtimestamp(content["exp"])
Describe the bug
DeprecationWarning is raised.
To Reproduce
Expected behavior
Should not have DeprecationWarnings
Version
Additional context
Will need to identify the specific Deprecation and refactor as needed.