Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util: Handle UTC wrapping on old Python versions
Old Python versions don't define datetime.UTC, so conditionally import it and just use the old datetime.utcnow() and datetime.utcfromtimestamp() functions on those Python versions. Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
- Loading branch information