Fixes for datetime UTC warnings in Python

from blog Simon Willison TIL, | ↗ original
I was getting the following warning for one of my Python test suites: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). I also saw a deprecation warning elsewhere for my usage of...