News for hackers. Stuff that matters.
Re:Simple, correct, fast: in that order by masklinn on Monday July 09, 2018 @11:23AM (#17490884)
> I think it's more in the spirit of the article to say, forget timezones, use UTC millis everywhere. If the server doesn't speak in timezones, then you eliminated all bugs where the server mishandles timezones.

That's a flagrant example of "simple and wholly incorrect". If you don't store timezones, your future dates will eventually turn out incorrect when timezone offsets change e.g. create a meeting at 9AM local, store as UTC, country decides to not follow DST that year bam your reminder will ping an hour early or late.

Or a day off when the country decides to jump across the international date line (https://en.wikipedia.org/wiki/International_Date_Line#Samoan...).

Re:Simple, correct, fast: in that order by y4mi on Monday July 09, 2018 @02:26PM (#17492304)
most applications don't need to schedule events into the future though and its a smart strategy if all you need to worry about is the past
Re:Simple, correct, fast: in that order by masklinn on Tuesday July 10, 2018 @02:39AM (#17495905)
For very specific cases? Sure, but none of the comments talking about UTC everywhere cares to specify this rather important bit.

Unless restrictions are specified I will assume we're talking about the general case, and for the general case it's just plain wrong.

Re:Simple, correct, fast: in that order by y4mi on Tuesday July 10, 2018 @09:10AM (#17497702)
from my point of few its the other way around.

There are very few applications that need to schedule events into the future, and that is literally the only situation where you have to worry about the timezone.

Btw, keeping the timezone is insufficient as well if you're building a calendar/scheduler. If the user changes the timezone after scheduling the event... do you keep to the old one and alert him whenever, or do you adjust? There are a lot of edge cases with schedulers -- yet as i said before, most applications don't schedule into the future. They're mostly just doing things right now or within the next few minutes and keeping a log of their actions.

Re:Simple, correct, fast: in that order by masklinn on Tuesday July 10, 2018 @09:19AM (#17497782)
> from my point of few its the other way around.

> There are very few applications that need to schedule events into the future, and that is literally the only situation where you have to worry about the timezone.

My experience is the exact opposite: there are few applications which only store past dates, and in those said date is usually indicative/barely even relevant and could just as well be part of a freeform comment or removed entirely.

Re:Simple, correct, fast: in that order by dredmorbius on Monday July 09, 2018 @11:27AM (#17490922)
The UTC example allows the user to translate output using localised tools.

The solution isn't incorrect, it is modular.

Re:Simple, correct, fast: in that order by masklinn on Monday July 09, 2018 @11:29AM (#17490941)
> The UTC example allows the user to translate output using localised tools.

So you provide an alarm clock which is works as neither a clock nor an alarm.

> The solution isn't incorrect, it is modular.

It's either not correct or not a solution, either way it's useless.

I also like how proponents of "simplicity at all cost" apparently assume/assert the composition of two systems is no more complex than either, and that there is no additional complexity to the composition layer.