Nuacht

I wanted to convert a datetime object (from GitPython) to UTC without adding the pytz dependency.
Solution Brainstorm Update sentry to use datetime.datetime.now(datetime.UTC) instead of datetime.datetime.utcnow() as suggested. Some quick testing shows that for this to work on python < 3.11 would ...
Learn how to work with date and time values using Python's datetime library, and how to avoid some of the gotchas and pitfalls of the datetime datatype.