by rtpg · 3y ago · 0 comments
I think anyone who does anything nontrivial with datetimes should always use non-naive datetimes (unless you have a really really really good reason to)
Even when I started doing Python web dev 10 years ago this knowledge was bestowed upon me and has saved me many headaches (and helped me find bugs in third party code). The fact this article claims otherwise makes me doubtful of other advice given.
Unfortunately, Pythons date/datetime APIs make it way too easy to do the wrong thing on this topic.
No comments yet.