Re:Whenever – typed and DST-safe datetimes for Python
by mark-r on Sunday April 13, 2025 @10:15AM
(#43672964)
Yeah, utcnow is completely broken. They should have fixed it when they created datetime.timezone.utc, but they didn't. The recommendation is to use datetime.datetime.now(datetime.timezone.utc) instead. utcnow should be deprecated and eventually removed.
[ Parent
| on HN ]