Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated
by capableweb on Sunday November 19, 2023 @05:17PM
(#38338939)
Just because you're storing the time in UTC doesnt mean you can't also store the timezone, and lots of other related data too.
[ Parent
| on HN ]
Re:It's Time for a Change: Datetime.utcnow() Is Now Deprecated
by mulmen on Sunday November 19, 2023 @05:48PM
(#38339322)
6am in my time zone is two different times in UTC. Right now it is 14:00 UTC. But when DST starts it will be 13:00. So what UTC value do you insert into your database for the opening time of the coffee shop? And how do you convert?