the datetime.utcnow() method is considered deprecated in modern Python versions, and it's recommended to use the more explicit datetime.now(tz=datetime.timezone.utc) instead. The utcnow() method is still functional, but it's considered less clear and less timezone-aware than the alternative. I have thus replaced the deprecated method with the newer one
Pull Request
Description
the
datetime.utcnow()
method is considered deprecated in modern Python versions, and it's recommended to use the more explicitdatetime.now(tz=datetime.timezone.utc)
instead. Theutcnow()
method is still functional, but it's considered less clear and less timezone-aware than the alternative. I have thus replaced the deprecated method with the newer oneFixes #
528
Checklist: