4 ms·
I suspect (as someone who doesn't write code that cares and therefore hasn't thought much about it) that it's easy to write... let's say naive code that occasio
by yjftsjthsd-h 5y ago
I suspect (as someone who doesn't write code that cares and therefore hasn't thought much about it) that it's easy to write... let's say naive code that occasionally results in the user entering "8AM this Saturday" and getting 7AM that Saturday because their country observes a DST switch.
- seanmcdirmid 5y agoDon’t time switches usually occur on Sunday morning specifically because things are rarely scheduled on Sunday mornings (even church starts at 10 or 11AM)?
- ghusbands 5y agoI think you're missing the point of the message you're responding to, perhaps because they accidentally chose an example that is unlikely to cross a DST change. What I think they're saying is that if you don't take DST into account at all, you might decide that "8am on Tuesday" will be using the current offset from UTC rather than the offset as it will be on the given day, whether by that logic or by adding multiples of 24 hours in similar cases.