Hacker News new | ask | show | jobs
by dqv 160 days ago
"overengineering"

    UPDATE appointments
    SET starts_at_utc = local_time AT TIME ZONE timezone_name
    WHERE timezone_name = 'America/Vancouver'
      AND starts_at_utc > now();
1 comments

You elided the part where you are adding an extra column to your database just for this rare corner case.