Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MNT:
utcnow()
→ now(tz=timezone.utc)
https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow Because naive datetime objects are treated by many datetime methods as local times, it is preferred to use aware datetimes to represent times in UTC. As such, the recommended way to create an object representing the current time in UTC is by calling datetime.now(timezone.utc). Deprecated since version 3.12: Use datetime.now() with UTC instead. Co-authored-by: Chris Markiewicz <[email protected]>
- Loading branch information