16 comments

  • jagged-chisel6 hours ago
    Future events: store the local (at the event) date and time and timezone. You’ll keep the right context even if lawmakers decide to switch things up. You want to see your doctor at 8:30 AM on Monday September 14, 2026 whether it’s daylight saving time, or standard time or “they” decide on a fractional hour offset between the time you set the appointment and the time you attend the appointment.<p>Past events: UTC timestamp.<p>What format should you use? Human readable strings for longterm storage, because when things go wonky, it’s easier to debug.<p>Note: nothing stops you from optimizing for queries by adding a field to store (or using a calculated index for) the integer epoch offset (e.g. unix timestamps), just make sure you know which field is authoritative.
    • Ndymium7 minutes ago
      Copying what I posted under the original[0] that no one noticed because it&#x27;s quite relevant to your mention of UTC for past events:<p>The naming of &quot;timestamp with time zone&quot; is one of my favorite pet peeves. It&#x27;s one of those things that you can say &quot;well technically it&#x27;s true&quot; about.<p>The article suggests that for past events, UTC and this timestamptz would be acceptable as a general rule, but even there it depends on what you will be doing with the data. If you intend to interpret it as a series of local occurrences and try to visualize&#x2F;summarize that data later, you may be in for a surprise as your user has moved to another timezone and now all the past events are translated to the wrong local hours [1]. For example, your system might end up showing that the user&#x27;s best time for jogging based on historical data is at 2 in the night.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48558005">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48558005</a><p>[1] <a href="https:&#x2F;&#x2F;blog.nytsoi.net&#x2F;2022&#x2F;03&#x2F;13&#x2F;utc&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.nytsoi.net&#x2F;2022&#x2F;03&#x2F;13&#x2F;utc&#x2F;</a>
    • miki1232111 hour ago
      However, keep in mind that there is *no way* to store the time of a future event in a way that won&#x27;t someday break unexpectedly. It just physically can&#x27;t be done.<p>Your approach assumes that we know what timezone the doctor&#x27;s office will be in when the event happens. However, unless you know the exact lat&#x2F;lon of that office — and maybe not even then — that&#x27;s not something you can rely on.<p>Countries sometimes split themselves up. Provinces get annexed. Border towns may end up on the other side due to a treaty, even in times of peace. Multi-timezone countries may change which parts belong to which timezone. A town may get occupied, and the answer to the question of &quot;what time is it&quot; may depend on the loyalties of the person you ask.<p>Unless the doctor&#x27;s office is physically located in Berlin, Germany, there is no guarantee that europe&#x2F;berlin will always be its correct timezone. Even then, you may get the east&#x2F;west Berlin split and one side deciding to abandon DST.<p>When an event happened in the past, we know exactly when it happened, and we can express that timestamp as &quot;number of seconds after some reference point.&quot; When an event is planned for the future, we usually plan it for a specific hh:mm in a specific location, but we don&#x27;t know when that is actually going to be.
      • eduction2 minutes ago
        Everything in the future is provisional and uncertain. The doctor could die, humanity could get obliterated, the database could go offline and you lose all your appointments.<p>All we can do is our best. To make your comment more helpful one might distill it to “storing location coordinates could be useful in the event of a major geopolitical event that alters the time zone in that location.” Simply saying the date is not guaranteed to be clearly resolvable doesn’t add much. We already know the future may be different than we plan. And yet some approaches are more resilient than others.
    • infamia1 hour ago
      Great advice! The really tricky part to me is when you have an event your recorded before it happened, but want to look it up after the event has passed (e.g., you want to look up the doctor&#x27;s appointment a year after it occurred). The simplest and <i>mostly</i> solid answer I&#x27;ve been able to come up with is:<p>1. If you want to know when something happened and a particular place is important (like the previously mentioned doctor&#x27;s appointment), store the local date&#x2F;time with timezone data. That covers you in case the timezone changes before your recorded event happens. Personally, I would not store reflexively store dates&#x2F;times in a string. For the cases I encounter, that feels like primitive obsession since you can always use EXTRACT in a query to simplify output.<p>2. If will you need to lookup the date and time after an event occurred, write a separate field that includes timezone offset field (e.g. -1, +1, -8, etc.) in case you want to look up exactly when an event previously happened. This (mostly) covers you from timezone shifts that occur at that particular location between when you wrote the data vs some later date. This falls apart if the timezone you&#x27;re converting to also changed their timezone between now and the event. Also, if your timezone shifts between when you wrote the record and the actual event.<p>I wonder if someone has a temporal record of timezone shifts. You could solve a lot of edge cases with something like that. Then you could write a query that asks for the timezone&#x27;s offset as of a specific date. That would make life much easier. Then you could skip the timezone offset field I mentioned in #2.
    • lalaithion4 hours ago
      What about virtual events between participants in different time zones? Whose do you keep stable if one has their clock moved under them?
      • joshAg3 hours ago
        If you&#x27;re feeling nice, randomize whose time remains stable (to keep things fair), keep the organizer&#x27;s time stable, or pick the time that minimizes the number of participants who will have the meeting time change.<p>If you&#x27;re feeling mean, randomize whose time remains stable (to make it hard to predict), move the meeting for the organizer, pick the time that maximizes the number of participants who will have the meeting time change, or split the difference and move everyone. Meeting was at 10 AM for Alice and 9 AM for Bob, but now it can be at either 11 AM for Alice and 9 AM for Bob or 10 AM for Alice and 8 AM for Bob? Now the meeting is at 10:30 AM for Alice and 8:30 AM for Bob.
      • subarctic2 hours ago
        Every event should have an IANA timezone tied to a city like America&#x2F;Vancouver or Europe&#x2F;Berlin, and it should ideally be settable by the user. Some apps (e.g. Discord) don&#x27;t expose this but have a time zone under the hood, and it&#x27;s a huge pain every time daylight savings time comes along when an event&#x27;s time zone is incorrectly in Europe instead of North America
      • lucisferre2 hours ago
        This is the critical problem with all of this.<p>Daylight savings time changes, can&#x27;t be globally banned fast enough really.
    • mulmen5 hours ago
      &gt; What format should you use? Human readable strings for longterm storage, because when things go wonky, it’s easier to debug.<p>You can just use a TIMESTAMP with no TZ data. It&#x27;s functionally the same as using the string but simpler because you avoid all the string handling headaches and gain the benefit of avoiding to avoid double booking and date&#x2F;time functions to answer questions like &quot;how many appointments do I have in April?&quot;.
      • jagged-chisel3 hours ago
        I am willing to concede to “human readable” and dropping “string” iff queries on TIMESTAMP are producing a human readable string (I believe they are … I haven’t been in postgres in at least six weeks and details like that don’t make a lasting impression in muh brain)
    • Xirdus6 hours ago
      UTC for past events doesn&#x27;t always work either. For example, historical employee punch-in times.<p>UTC timestamps should only ever be used for points in time in the most literal sense, and nothing else.
      • drdexebtjl5 hours ago
        Why not? It sounds like it would be correct even if the employee has a shift that includes a offset change.<p>Future timestamps should be local because local timezone changes literally change the instant the event it will happen (relative to UTC). For past things, this can’t happen
        • Xirdus4 hours ago
          Correct according to what? An employee who punched in at 9AM wouldn&#x27;t show up as having punched in at 9AM anymore. Not unless you also store the exact timezone the UTC timestamps have been created with - but that&#x27;s basically local timestamps with extra steps.
          • drdexebtjl4 hours ago
            tzdata doesn’t change retroactively [1].<p>If an employee clocks in at 2026-06-22 09:00 America&#x2F;Sao_Paulo time, (which has a -03:00 offset today), and the server&#x27;s clock is in UTC, the server will save 2026-06-22 12:00 to the database.<p>If America&#x2F;Sao_Paulo changes to -02:00 on 2027, it doesn’t affect conversions for past dates. You still get 2026-06-22 09:00 when trying to convert 2026-06-22 12:00 to local time in America&#x2F;Sao_Paulo.<p>edit: [1] unless it was wrong. in which case, you actually still want the UTC timestamp stored, so that you can just update tzdata and get correct local times, as opposed to saving the wrong local times in your database, that you now have to also fix.
            • Xirdus2 hours ago
              But <i>which</i> tzdata? Do you have the timezone or do you not have the timezone? If you have the timezone then why is your timestamp in UTC and not in the timezone that you have to store alongside the UTC timestamp?
              • drdexebtjl1 hour ago
                Whichever timezone is relevant to the analysis later when the data is read.<p>If you want to see if an employee is late compared to the time their shift starts, the system needs to know the time their shift starts in UTC, because otherwise if they start a shift in during a timezone change, it’ll think they’re extremely late&#x2F;early.<p>If you want to pay them for their (clock out - clock in) time, UTC.<p>If they’re a remote worker on your team, and you want see your entire team’s availability, you should probably see it in _your_ local time instead.<p>I’ve found that whenever it looks like I need to know the local time that the user had when they did something, it’s because I’m implicitly anchoring it to some other timestamp that my system doesn’t know and that should also be recorded in UTC (like, in this example, the time their shift is supposed to start).<p>Some nuance applies, of course.
      • Terr_5 hours ago
        If <i>past</i> timestamps (UTC or otherwise) are unreliable, then there is some kind of math-bug going on.
        • dqv5 hours ago
          Not always a math bug. Sometimes a human bug. Tzdata can have errors (it&#x27;s crowdsourced after all) that cause <i>past UTC stamps</i> to be incorrect because that incorrect tzdata was used at conversion time. And since most people aren&#x27;t storing the tzdata version they&#x27;re using with the stamp, it would be very difficult to make corrections without also corrupting other stamps.<p>The bottom line is, if wall time is important, past or present, wall time needs to be stored.<p>The only thing that can be guaranteed about a UTC timestamp is it&#x27;s a UTC timestamp.
          • drdexebtjl5 hours ago
            When was the last time tzdata was wrong about a period that already passed?<p>Most of my career I’ve seen problems where it’s out of date, never where it’s up to date and wrong.
            • dqv4 hours ago
              For the 2026a release:<p><pre><code> Changes to past and future timestamps Since 2022 Moldova has observed EU transition times, that is, it has sprung forward at 03:00, not 02:00, and has fallen back at 04:00, not 03:00. (Thanks to Heitor David Pinto.)</code></pre>
              • drdexebtjl4 hours ago
                Interesting. I could see that as an argument also for storing it in UTC, no?<p>For example, if tzdata is 1 hour off, and you store your timestamps in UTC, it&#x27;s immediately obvious that a local time is wrong because users will see events that just happened as having happened 1 hour ago. Update tzdata, and now everything is right.<p>If you store the wall time, it _looks_ right, but fails if you attempt to compare&#x2F;sort it with times in different timezones. To fix it, you need to actually modify the data in your database.
                • dqv3 hours ago
                  Only for server-supplied timestamps.<p>Like the time clock example: sure what you&#x27;re describing works if the user is just pressing a button to clock in and the server stores a UTC timestamp in response to a POST request or whatever.<p>But it&#x27;s very common to need to backfill time. So the user backfills with their own supplied timestamps, those stamps get converted to UTC, tzdata changes a few months later, and HR is now asking for an explanation as to why they were late for those backfills and how it&#x27;s possible they were working an hour after the shop closed.<p>It&#x27;s never as simple as &quot;just store it in UTC&quot;.<p>Conversion to UTC is lossy, so I prefer to keep up with the user-supplied time where appropriate.
          • __s5 hours ago
            Seems like for airtightness you&#x27;d store utc alongside utc of when timestamp was stored alongside timezone
        • Xirdus4 hours ago
          &quot;UTC or otherwise&quot; is important. Are you storing otherwise, or are you storing UTC? There are times where storing otherwise will lead to data loss in case the law changes whereas storing UTC would work (when you care about a literal point in time, like access logs). And there are times where storing UTC will lead to data loss in case the law changes whereas storing otherwise would work (when you care about wall clock time, like punch-in times).
    • joejoegobot2 hours ago
      [flagged]
  • munk-a6 hours ago
    This problem is not new and is a relatively minor exposure to the sort of issues that TZ conversion constantly needs to deal with. Different parts of the world have different dates that they adopt (or don&#x27;t adopt) DST and some nations have changed this date in the past.<p>Use a library, do not roll it yourself, do not try to outsmart tzdata... if you think you could then please volunteer for this project and either become a new Chronomancer[1] or get disabused of that misconception.<p>1. It&#x27;s a legal title, people actually have to call you a Chronomancer if you&#x27;ve contributed to tzdata, it&#x27;s the law.
    • Terr_6 hours ago
      Indeed, recognizing Chronomancy will once have soon always been the case.
    • mulmen5 hours ago
      What happens if I booked an appointment before the rules changed and TZDATA could be updated and deployed?
  • rjrjrjrj6 hours ago
    An added wrinkle is that parts of British Columbia use other timezones.<p>The southeast corner follows Alberta time (previously MST&#x2F;MDT but changing to MDT).<p>Parts of the northeast and iirc a few other communities (eg Creston) have historically followed MST (no switch) and will now be effectively on the same time as Vancouver, albeit probably with a different TZ designation(?).
  • chaidhat4 hours ago
    Whenever I see a tz post, I want to remind ya&#x27;ll that the `tzdata` package is using data from `eggert&#x2F;tz` by Paul Eggert -- a crazy good UCLA professor. I took his course once and in the exams, he&#x27;d like to put in a question he didn&#x27;t know the answer to himself.
  • thisrod1 hour ago
    This problem isn&#x27;t specific to timezones. In general, you did X on the basis that A was B, and now you know that that A is actually C. The strategies to handle that are quite interesting:<p><a href="https:&#x2F;&#x2F;martinfowler.com&#x2F;articles&#x2F;bitemporal-history.html" rel="nofollow">https:&#x2F;&#x2F;martinfowler.com&#x2F;articles&#x2F;bitemporal-history.html</a>
  • ivan_gammel6 hours ago
    ANSI SQL has DATE and TIME types. Just use them for appointments bound to location. Conversion to current user timezone must happen in presentation layer and certainly does not belong to a database.
  • jedberg7 hours ago
    I would contend that you shouldn&#x27;t store anything but current unix timestamps in UTC in your database. If you must store time in some other way, then the two column method in the post will work, but leave it up to your software library to do it.<p>I prefer to leave all the time conversions to software, wherein you only use battle tested libraries, and never do it by hand.<p>Timezones are just too fraught with peril to try and do it on your own.<p>Edit: changed some words to make clearer what I was saying.
    • ppchain7 hours ago
      The issue described in the post is an example of when you cannot just rely on Unix timestamps. Specifically it comes down to which date is authoritative.<p>A appointment with your dentist at 2pm Pacific Time in December 2026 has <i>changed</i> Unix timestamps in British Columbia. The dentist doesn&#x27;t care about the Unix timestamp, she cares about the wall clock local time when you arrive for the appointment.
      • Terr_5 hours ago
        To frame it another way, your dentist has agreed to a particular <i>triggering condition</i>. (Whether they realize that&#x27;s how their country works or not.)<p>We can all make pretty-good <i>guesses</i> about when that condition will be fulfilled in N seconds, but until it actually finally happens, the true occasion could land somewhere else.<p>&quot;Three months later at 2PM where I live&quot; is not so different than &quot;when the thrush knocks during the setting light of Durin&#x27;s Day.&quot; You can guess that it&#x27;s N seconds from now, but you might be wrong.
      • XYen0n1 hour ago
        How does your system know when it is 2pm in British Columbia?
      • jedberg7 hours ago
        I edited my comment to make it clearer. I meant you should only directly store <i>current</i> timestamps, anything else you should leave up to a library to store as it sees fit.
        • ncruces6 hours ago
          The post is for the otherworldly magician who wrote your library then.
      • ngaheer6 hours ago
        &quot;Which date is authoritative&quot;.<p>I don&#x27;t understand this. The consumer books in his&#x2F; her local time stamp i.e. 12 PM pacific. Gets stored as Epoch milliseconds (and is passed around as a data structure i.e. Date struct with UTC as the timezone) and the providers sees the time stamp 3 PM EST or 2 PM CST depending on it&#x27;s timezone at runtime (interface the provider it works with).<p>I don&#x27;t understand why a specific timezone has to be &quot;authoritative&quot; here. What am I missing.
        • Terr_5 hours ago
          Clocks are social constructs, and your system needs to have some decision in it about whose clocks take precedence over other ones.<p>No matter which of these you choose, there&#x27;s a possibility that someone says: &quot;Hey! That&#x27;s wrong! I never agreed to <i>that</i>&quot;:<p>1. The meeting shall be in precisely N seconds, no exceptions. (UTC, or something very close to it.)<p>2. The meeting shall be when participant A&#x27;s wall-clock shows X.<p>3. The meeting shall be when participant B&#x27;s wall-clock shows Y.<p>At the present instant, you might have <i>predicted</i> values so that X Y and N all land on the same spot, but the prediction is not reliable and the equality will collapse if anybody&#x27;s government makes timezone changes. Or if their country is taken over by another. Or splits due to civil war.
        • Xirdus6 hours ago
          The appointment is for 12&#x2F;1&#x2F;26 2PM of whatever timezone the office is in at the time of the appointment.<p>Between the time of booking and the time of the appointment, the government changed what timezone there will be at the time of the appointment. If you calculated the Unix timestamp at the time of booking using the old laws, by the time of the appointment the Unix timestamp would be off by an hour.
        • mgaunard6 hours ago
          Never heard of DST? The authoritative time is constant in the local time zone, but needs to change in UTC twice a year.<p>This is the exact reason people store time in local time zones.<p>Also remember the date&#x2F;time where DST switching occurs is entirely timezone-specific, and it&#x27;s not necessarily the same pattern every year (as demonstrated with British Columbia).
          • Insimwytim35 minutes ago
            DST works fine with Unix timestamps.<p>It&#x27;s the scheduling changes that disrupt DST switch (or something else) need adjusting to. But this is usually planned in advance and everyone would (or at least should...) update their tzdata.<p>The amount of issues you&#x27;ll have due to those (comparatively rare) changes cannot even begin to compare to the amount issues you&#x27;ll have with datetime stored in timezones.
        • Mogzol6 hours ago
          You have to choose one timezone to be authoritative here, which one you choose depends on the situation, but if you don&#x27;t choose one, then a change like the one happening in BC will cause the consumer and provider to be using mismatched times.<p>If the consumer booked something for 12PM Dec 1 2026 PST, and this booking was made before BC&#x27;s changes were announced, and the provider saved this using their local time (say EST), then they would have saved it as 3PM EST. But now with BC&#x27;s changes, when the consumer shows up at 12PM their time, that will be 2PM EST, an hour before the provider was expecting.<p>Was the consumer correct for showing up at the booked time according to their wall clock, or is the provider correct with their saved the time that was an hour later? The answer probably depends, but whichever you choose is the authoritative time.
        • em-bee6 hours ago
          you booked an appointment in the future. before the day of your appointment arrives, british columbia changes the timezone. all appointments after that change now must follow the new timezone rules. therefore the time of your appointment relative to UTC is now different.
        • slyall6 hours ago
          Except that the timezone in British Columbia has now changed. Lets say you stored the appointment for November in UTC.<p>So you set the time to 10pm UTC to match 2pm British Columbia. But because the timezone for BC has changed that 10pm now matches 3pm in British Columbia<p>So the Dentist is expecting you at 2pm and you come along at 3pm
    • ivan_gammel6 hours ago
      It‘s a common mistake to store everything as UTC timestamps and shows lack of understanding of time domain. Local time exists and it is neither UTC or timezone-dependent. Doctor office opens at 8 a.m. regardless of whether it is DST or not. Appointments are made in local time. Store them in local time.
      • remus6 hours ago
        &gt; Appointments are made in local time. Store them in local time.<p>You may just be illustrating a particular use case, but it is more ambiguous in the general case. For example if you have arranged a meeting with someone in another timezone then maintaing the local timezone could lead to a misalignment for one of the participants.
        • ivan_gammel4 hours ago
          This is ok. When future local user time offset is unpredictable, pinning meeting time to a certain location is a good strategy. If at some point meeting shifts for some user, well-designed calendar app could warn them and let reschedule. It still works better than pure UTC because it is predictable for at least some of the users.
    • merb7 hours ago
      In that case only storing utc did not work when you created a date in the future before you updated tzdata
      • jedberg7 hours ago
        I edited my comment to make it clearer. I meant you should only directly store <i>current</i> timestamps, anything else you should leave up to a library to store as it sees fit.
        • phantom7846 hours ago
          How would this solve the British Columbia issue as described in the article?
    • rini176 hours ago
      If you don&#x27;t understand what the library is doing, and blindly put in local time without any consideration, you will get bitten someday. And all libraries use the same timezone database&#x2F;logic anyway and run into same issues the author describes.
  • necro5 hours ago
    Time is local Timestamp is a counter<p>A unix timestamp does not have different timezones. It is a counter. No matter where u are in the world a timestamp call should give you the same numeric value at the same instant. It is not time zone adjusted. Store that number, unadjusted as the source of truth. You can get to any local time after that.
  • ncruces6 hours ago
    This strategy fails for appointments during that hour where the clock goes back: they are ambiguous, can refer to two different moments in time.<p>That caveat aside: good.
    • jagged-chisel6 hours ago
      I have yet to find a technological solution to this social problem.<p>Also, I have yet to encounter this problem. For personal events, I sleep during this time. For company events, we always avoid this time.
      • ncruces6 hours ago
        I encountered it when I was design the scheduling back-office for a LED video wall a few years ago when those became economical for a shop to own and run 24&#x2F;7.<p>The customer probably never noticed if I even did it “correctly” or couldn&#x27;t be bothered if I didn&#x27;t, but I remember I was bothered by it: (1) ensuring continuity of programming during the gap when it jumps forward (2) solving the ambiguity when it went backwards.<p>Because obviously they wanted to think in local time.
      • rjrjrjrj4 hours ago
        I have, in the context of time series charts. Lots of back and forth with QA.
      • mulmen6 hours ago
        You&#x27;re right that for the most part this is avoided by convention and scheduling time changes at quiet times of day.<p>A <i>bit</i> contrived but consider you are a maintenance worker in a facility that uses isolated timekeeping devices. &quot;Change the clock on the vault back one hour at 3:00am&quot;.
    • rawling6 hours ago
      Sounds like the quoted RFC would help here. Storing the offset would make it unambiguous which of the two moments was meant. Your business logic would have to figure out what to do when the offset no longer exists (honour the clock time or convert to the new timezone) or is nonsense. The geographical reference would help decide what to do if you&#x27;re not in a single location.
    • rini176 hours ago
      Humans would often fail such appointments too.
  • _whiteCaps_6 hours ago
    I just need to know what happens to our 9am standups in Vancouver when the other team is in SF. If I&#x27;m doing the math correctly it moves to 10am.<p>Also, I&#x27;ve often picked a random city in Pacific time when setting timezones on hosts, so I guess it&#x27;s going to cause me some headaches in the fall.
    • empressplay4 hours ago
      Don&#x27;t worry, WA, OR and CA probably aren&#x27;t far behind.
  • StayTrue6 hours ago
    Dumb change on the part of British Columbia.<p>Source: me, BC resident.
    • charles_f1 hour ago
      That law, voted years ago, has overwhelming public support (including mine). Source: an actual source^1<p>^1: <a href="https:&#x2F;&#x2F;news.gov.bc.ca&#x2F;releases&#x2F;2019PREM0103-001748#:~:text=British%20Columbia%20News.,Premier%20John%20Horgan.&amp;text=%E2%80%9CThis%20legislation%20is,organizations%20and%20experts" rel="nofollow">https:&#x2F;&#x2F;news.gov.bc.ca&#x2F;releases&#x2F;2019PREM0103-001748#:~:text=...</a>
    • vojtapol5 hours ago
      Why?
      • patmcc5 hours ago
        No the OP, but I&#x27;m also in BC and dislike this change.<p>The change was made (partly) based on a bullshit poll of residents, that asked basically &quot;Hey which would you rather do, use year-round Daylight Savings Time or keep switching every six months?&quot; - notably <i>not</i> including the option a lot of people wanted (and which is well-supported by a lot of research as the best option), which was &quot;use year-round Standard Time&quot;.<p>And then in a bunch of press conferences and answers to the public, they would say &quot;oh, this is what people chose&quot; from the poll.
        • subarctic1 hour ago
          Sounds like Brexit #2
        • StayTrue4 hours ago
          Correct and complete explanation.
        • empressplay4 hours ago
          If we did that the sun would be coming up at 4am right now in Revelstoke. What&#x27;s the point of the sun being up at 4am?<p>On the other hand, I don&#x27;t like it getting dark at 3:30 in the afternoon in Vancouver around Christmas. I know it means it will be darker later in the morning but you wake up in the dark that time of year already anyways.
          • KyleSanderson4 hours ago
            Go for a run, hit the ski hill, all before you start work. The sun runs your health (circadian rhythm). I&#x27;m in Vancouver and this is the dumbest change. We&#x27;re going to pay for this for a decade in premature deaths, and we&#x27;ll end up on standard time anyway.
            • fouc1 hour ago
              I always get up with the light so I think 4am would be too unreasonable. Especially if most cafes remain closed for hours still. 5am is tolerable.<p>As for winter, an extra hour of dark doesn&#x27;t feel like a huge deal. When I commuted in the winter it was often happening around 6am while still dark anyways.<p>I have a feeling people&#x27;s morning habits will change a bit to compensate for the darker mornings though. So I think it&#x27;ll work out in the end.<p>Where do you expect the premature deaths to come from? Rush hour traffic in the dark?
      • emptybits4 hours ago
        BC resident. I do look forward to not adjusting to a twice-annual time change. BUT, I would have strongly preferred sticking to Standard Time, year round, instead of DST. That option was apparently not on the table, and strangely got little mention or investigation by media.<p>So a daily event approximating High Noon is literally gone forever here. Yes yes, depending on longitude, it was never there, but now it&#x27;s even farther away. Life goes on...
        • vanjoe38 minutes ago
          Also from BC: we get up in the dark in the winter either way. May as well have it light when I get off work.
  • pphysch3 hours ago
    This is one of those cases where I would prefer to be antifragile and rapidly &quot;patch the data&quot; once as opposed to trying to perfectly solve problems like this before they arise. In all likelihood this will never happen in a particular timezone.
    • dqv2 hours ago
      &gt; In all likelihood this will never happen in a particular timezone.<p>You sure about that?<p><a href="https:&#x2F;&#x2F;lists.iana.org&#x2F;hyperkitty&#x2F;list&#x2F;tz-announce@iana.org&#x2F;latest" rel="nofollow">https:&#x2F;&#x2F;lists.iana.org&#x2F;hyperkitty&#x2F;list&#x2F;tz-announce@iana.org&#x2F;...</a><p>2026b - changes to future timestamps<p>2026a - changes to past and future timestamps<p>2025c - changes to past timestamps<p>2025b - changes to past timestamps<p>2025a - changes to future timestamps<p>2024b - changes to past timestamps<p>2024a - changes to future timestamps<p>2023d - changes to past and future timestamps<p>2023c - changes that changed future timestamps reverted<p>2023b - changes to future timestamps<p>I definitely prefer the... fragile? approach for this problem
  • xp846 hours ago
    I hope this gives us Americans the needed encouragement to do the same on the west US coast. Utter insanity to screw with the clocks twice a year instead of letting various institutions who have a compelling need, to publish &quot;Summer hours&quot; to suit them.
    • tadfisher4 hours ago
      Apparently there is a Federal restriction: we can opt to eliminate DST, like Hawaii and Arizona, but we cannot unilaterally decide to adopt &quot;permanent DST&quot; as did British Columbia. So we&#x27;ll have to figure out how to get both houses of Congress to pass a bill into law, and have the President sign it, without said institutions convincing the world that keeping your clocks 1 hour forward is woke propaganda and injects gay chemicals into tadpoles.
      • novemp2 hours ago
        Isn&#x27;t the simple option to just move time zones? If you&#x27;re not allowed to swap to PDT year round, just change to MST instead.
  • mulmen5 hours ago
    The issue here seems to be that the behavior of tzdata (correctly) changes over time. Can all this complexity be avoided by storing the tzdata version in the timestamp itself so it can decoded with the same rules?
    • dqv2 hours ago
      It&#x27;s just a different kind of complexity and one that requires having a library that can arbitrarily load different versions of tzdata.<p>I&#x27;ve been thinking about it for a while though - a time zone conversion library that also accepts an additional &quot;tzdata_version&quot; argument.
  • acalvino47 hours ago
    [dead]