What went wrong? In Python 3.12 the datetime.utcnow () functionality is removed. The solution is to move to timezone aware datetime objects with import datetime as datetime, UTC date = datetime.now ...
A lightweight datetime utility library which wraps around the standard datetime module, with features from dateutil and pytz. Its purpose is to minimize the effort to convert datetime to/from UTC, a ...