Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use of the deprecated datetime.utcnow method (#1758)
This PR replaces uses of the deprecated (as of Python 3.12) `datetime.utcnow` method. Note that this isn't quite a like-for-like change: there's a slight difference in the output format. Given that the event tracer is barely used in practice, I doubt this change matters much. ``` >>> from datetime import datetime, timezone >>> datetime.now(timezone.utc).isoformat(" ") '2023-09-11 16:31:35.534330+00:00' >>> datetime.utcnow().isoformat(" ") '2023-09-11 16:31:56.798474' ``` (cherry picked from commit 36a95d5)
- Loading branch information