radish-bdd / radish

Behavior Driven Development tooling for Python. The root from red to green.
https://radish-bdd.github.io
MIT License
180 stars 49 forks source link

Python 3.12 deprecation of utcnow() #462

Open fliiiix opened 11 months ago

fliiiix commented 11 months ago

check if there is a way to make that work with all supported Python versions

radish/extensions/time_recorder.py:48: 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). step.starttime = datetime.utcnow()