It’s 8 a.m. on Saturday, March 7, 2026, in Toronto. You set a 24-hour timer and put a meeting on your calendar for 8 a.m. Sunday.

Sunday’s meeting starts at 8. The timer rings at 9. Overnight, the clock jumps from 1:59 a.m. to 3:00 a.m., so only 23 hours pass between Saturday at 8 and Sunday at 8.

The circle below marks the meeting. The square marks the timer. Choose Fall back to see what happens when the clock repeats an hour. This time, the timer rings first.

Both start

Toronto time

02:00 is skipped.

Calendar appointment
23 hours later
24-hour timer
24 hours later

Add a day or add 24 hours

In JavaScript, Temporal.ZonedDateTime holds a date, a time, and a time zone. The time zone tells Temporal when the clocks change. Here, adding one day moves the meeting to Sunday and keeps it at 8 a.m. Adding 24 hours counts how long the timer runs. Temporal documentation on adding durations

JavaScript

const saturday = Temporal.ZonedDateTime.from({
  year: 2026,
  month: 3,
  day: 7,
  hour: 8,
  timeZone: 'America/Toronto',
});

const meeting = saturday.add({ days: 1 });
const timer = saturday.add({ hours: 24 });

meeting.hour; // 8 a.m. Sunday
timer.hour; // 9 a.m. Sunday

Schedule a post for 8 a.m.

The job that rebuilds this blog runs at a fixed time in UTC. If I want a post to go out at 8 a.m. in Toronto, I first pick the date. Temporal.PlainDate holds just that date. I add the time and zone, then call toInstant() to get a timestamp I can write in UTC. Temporal documentation on plain dates

JavaScript

function publishAt(dateString) {
  const date = Temporal.PlainDate.from(dateString);
  const localTime = date.toZonedDateTime({
    timeZone: 'America/Toronto',
    plainTime: '08:00',
  });
  return localTime.toInstant().toString();
}

publishAt('2026-03-07'); // '2026-03-07T13:00:00Z'
publishAt('2026-03-08'); // '2026-03-08T12:00:00Z'

For a daily schedule, I’d save the rule as “8 a.m. in Toronto” and work out the UTC time for each date. Temporal documentation on instants

The demo uses the browser’s Temporal implementation when available and falls back to a polyfill. Temporal polyfill