3 ms·
It’s pretty disappointing to see this article make claims like “web developers just use naive datetimes”. I think anyone who does anything nontrivial with date
by rtpg 3y ago
It’s pretty disappointing to see this article make claims like “web developers just use naive datetimes”.
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.