Tell HN: Sudden Chile daylight savings time rules change causes chaos
121–130 of 174 posts
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#122This kind of thing is why it's important to store user-specified future dates as local time + IANA zone name. If a user wants a calendar event at 9am, they probably still mean 9am after accounting for time zone or DST changes. Storing dates as UTC is appropriate for dates in the past, or future dates that a user will never expect to happen at a certain wall-clock time. (An IANA zone name is something like America/New…
Of course, times sometimes do need timezones. But calendar dates (like Christmas, or your birthday) almost never do and having things automagically do adjustments based on that and give the wrong results is just a pain.
That's one thing I don't like about many standard libraries. They'll have a DateTime object that does all kinds of automagic stuff for you (or against you), but no concept of just a date itself. Many bugs occur between 2300 and 0100 due to that (and sometimes between 1100 and 1300 because people try to compensate for the buggy adjustments by setting the unwanted time component to noon).
Another problem arises when the server's timezone is set to X, the database's timezone is Y, the software's timezone is Z, and one user's entering data in timezone A while another is reading it in timezone B - and all of the software parts along the way are each trying to automagically adjust it. A good reason we should just all switch to UTC and drop the idea of timezones entirely.
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#123Chilean here. Unfortunately our governments have had the bad habit of changing the date DST starts on every two-three years, and that wreaks havoc everywhere in the country. We are kind of used to having a couple of days where we assume everyone will run an hour late because of this. I just hosted some Peruvian friends this week and were amazed at the kind of power the government wields just by having the ability to…
> amazed at the kind of power the government wields just by having the ability to change our timezone. Who else would have that power, though? Every government has the power to set the time within their own borders.
it's perfectly reasonable for goverments to self-limit themselves - for example, pass a law that daylight savings time can't be changed with less than 6 months notice.
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#124This is why I personally want everything to just be utc without timezones
We live on an approximately spherical world, its rotation is not tidal locked to its star, its rotational axis is not perpendicular to its orbital plane, we evolved to synchronize our biological rhythms including our sleep/wake cycle to local sunrise and sunset, we occupy a wide range of latitudes and longitudes, and we need to coordinate activities with people who are far away from us. Switching to worldwide UTC doe…
Furthermore, it'd be much easier to coordinate activities with people who are far away from us if you could just say 2300 and they'll know when that is because it's the exact same time for them on their clock. Timezones are what makes that bad in the first place!
This idea that we for some reason need to keep changing and tinkering with the labels on the clocks due to flaky political reasons is just a silly old superstitious tradition. Just pick one timezone and let's all use it already.
In fact, you can already see how well that can work if you live away from the equator. As the year progresses, the days get shorter and longer day by day - but we don't adjust the clocks by a couple of minutes every single day. Because it doesn't matter whether the clock labels match up with the sunlight.
If it did in fact matter, then we'd need special clocks that sometimes run faster during daylight and sometimes slower, depending on latitude and date so that we get the same number of 'minutes' of daylight at the same 'times' each day even though the actual lengths and times vary. But we don't do that of course both because it would be totally nonsensical, and also because it doesn't matter.
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#125Chilean here. Unfortunately our governments have had the bad habit of changing the date DST starts on every two-three years, and that wreaks havoc everywhere in the country. We are kind of used to having a couple of days where we assume everyone will run an hour late because of this. I just hosted some Peruvian friends this week and were amazed at the kind of power the government wields just by having the ability to…
So, for a few months every year clocks at Chile are synchronized with the the (almost) most Eastern parts of South America? (Except for some small islands.)
That's insane. Does the Sun sets at 10PM?
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#126Earlier quoted context omitted.
I've mostly given up being pedantic about the difference between PT, PDT, and PST. Most people mean "PT" when talking about the time that work meetings are scheduled, but they say "PST" basically year-round, despite it being PDT more often than PST.
It's not a pedantic difference; if you calculate the time as PST when it's PDT or vice versa you'll be an hour off. Holding a meeting an hour early or attending it an hour late can have serious consequences.
In normal everyday usage, most of the time, people will understand by context and convention what is meant by "5:30" even without specifying AM or PM, let alone the timezone or TZDATA version associated. Yes, there are times specificity matters, and thinking about that can be goos, but the social frictions imposed may exceed any other benefits achieved, at least much of the time. At the same time, even where those ambiguities exist it's typically mentally jarring for people to be constantly reminded of this, even where they should be.
Where there's an opportunity for ambiguity, yes, nail down specifically what is meant. I read delecti's comment in that context, and note that they're describing themselves as the pedant. Which I interpret as "a stickler for accuracy and precision".
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#127Earlier quoted context omitted.
So that's why `tzdata` constantly gets updated.
So far 3 releases in 2022, 5 in 2021, 6 in 2020, 3 in 2019
Calendly always seriously struggled with it, which is really bad given they're a scheduling tool. The amount of meetings I (or my guests) came 1 hour early/late to was... too many.
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#128Since we all carry veritable supercomputers with GPS in our pockets now, it's the perfect time for everybody to switch [back] to true solar time. Your noon is when the Sun is precisely at its zenith where you are.
Seriously though, everyone having slightly different individual times could be real confusing.
For example, two people, a couple of hundred miles/kilometres apart share a phone call, one of them asks: "What time is the game on?"
Also, I am picturing the engineer who work on Google Maps crying at the time adjustments required for traveling east/west on the journey time/arrival time estimate.
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#129This seemingly almost happened a year or two ago in Georgia (the US state, not the country) when the legislature overwhelmingly supported ending the twice a year time change. But much like the public, the legislature couldn't agree on if they should go to year around standard time or year around daylight saving time, with one house passing standard time overwhelmingly and the other house passing DST overwhelmingly. T…
Not exactly what happened in the end. The house and senate in Georgia agreed on DST. However we can’t change to permanent DST yet. By Federal Law an act of Congress has to happen to change the law. https://www.fox5atlanta.com/weather/permanent-daylight-savin...
Re: Tell HN: Sudden Chile daylight savings time rules change causes chaos
#130Not the worst example I've heard. In 2016 the Haitian president canceled daylight savings by decree two days before the changeover. I was flying out of the country the morning after the change, and had a really hard time explaining to airline customer service (who hadn't gotten the memo) what exactly the problem was. "When does my flight leave?" "At the scheduled time." "According to what clock?" "Huh?" I just showed…
My wife and I, we once had three switches to daylight saving time one spring. This was during a trip to the US. Once in NYC where we missed our train. Once in Arizona, we just arrived one hour "later" than planned. The last time after we returned to Switzerland. I missed an important meeting at my job still jetlagged.
That was confusing as hell even without rule changes.