requests-cache / aiohttp-client-cache

An async persistent cache for aiohttp requests
MIT License
116 stars 20 forks source link

Remove usage of `datetime.utcnow()` (deprecated in python 3.12) #243

Closed JWCook closed 3 months ago

JWCook commented 3 months ago

Fixes #237; related to #195

Note: a future improvement would be to start using timezone-aware datetime objects, but this will cause problems with existing cache data (can't compare timezone-aware and timezone-naive datetimes). It would be best to do this at the same time as a release that includes changes to request matching logic (i.e., new cache keys).