Context
datetime.datetime.utcnow is deprecated after python 3.10. It should be replaced with datetime.datetime.now(datetime.UTC). Once we drop python 3.10 support, we will be able to replace all instances of datetime.datetime.utcnow() with datetime.datetime.now(datetime.UTC).
Follow up to #1013
Value and/or benefit
- Fixes deprecation warnings 🔧