News for hackers. Stuff that matters.
Re:Glibc is still not Y2038 compliant by default by aastronaut on Wednesday December 29, 2021 @07:18AM (#29724143)
You seem to make a contradicting statement here with what you wrote in the sibling comment, no? timezone information are influenced by political means, whereas localization (lat/long) information is not. UTC timestamp + localization seem more correct to me.
Re:Glibc is still not Y2038 compliant by default by bdonlan on Wednesday December 29, 2021 @08:38AM (#29724677)
The semantics of "time X at point Y" are different from "time X in time zone Z". Sometimes the former may indeed be what you want, but it's uncommon for the user to be providing precise location information for a point in time far in the future. If you're told "time X, Eastern standard time", then the semantically correct thing to do is to not guess a point in space, but instead preserve the time zone as provided.
Re:Glibc is still not Y2038 compliant by default by ak217 on Wednesday December 29, 2021 @12:17PM (#29726950)
This line of thinking is how we end up with nonsensical UX like having to select "America/Los Angeles" to get US Pacific time. There are many use cases for datetimes and timezones, not all of them need a location and in some cases it's incorrect or misleading to include a location. You could certainly use a UTC timestamp and coordinates in your application but that doesn't work for many other use cases.