I ran main.py on my laptop with Python 3.12, which completed successfully but gave me a deprecation warning about using datetime.utcnow().isoformat() due to its deprecation and future removal, and recommended switching over to datetime.now(UTC).isoformat(). I read the information on this article for some confirmation and context, and then tested the change.
Nothing breaks as a result of this change, but the isoformat() produces a slightly different string on the new version (see console snippet below). If we're okay with that difference, then it should support compatibility with future versions of Python.
I ran
main.py
on my laptop with Python 3.12, which completed successfully but gave me a deprecation warning about usingdatetime.utcnow().isoformat()
due to its deprecation and future removal, and recommended switching over todatetime.now(UTC).isoformat()
. I read the information on this article for some confirmation and context, and then tested the change.Nothing breaks as a result of this change, but the
isoformat()
produces a slightly different string on the new version (see console snippet below). If we're okay with that difference, then it should support compatibility with future versions of Python.