Skip to content

Time zones and changes of time

A calendar stores the wall time and its zone, never an instant. start=2026-11-05T18:30 in Europe/Paris means "18:30 in Paris", whatever happens to the rules of the zone. The instant is computed at build time by @recit/time (@recit/time/zoned), with the zone database of Intl; the page and the feed (@recit/time/ics) carry it.

A recurrence keeps its wall time

A weekly course at 18:30 in Paris stays at 18:30 in Paris after the end of summer time (25 October 2026); the instant in UTC moves instead.

SessionParisUTC
13 Oct 202618:3016:30
20 Oct 202618:3016:30
27 Oct 202618:3017:30
3 Nov 202618:3017:30

New York changes time a week later (1 November 2026). For that week, a course in Paris is five hours ahead of New York instead of six: the example calendar-course has office hours in each zone to show it.

A time that does not exist, or exists twice

Wall timeIn ParisWhat Récit does
2026-03-29T02:30does not existmoves it one hour forward, calendar-nonexistent-time
2026-10-25T02:30exists twicetakes the first one, calendar-ambiguous-time

Both are warnings with their line: the event is kept, and you choose another time if the one chosen is not what you meant. This is the rule of RFC 5545, so a calendar app reads the feed the same way.

duration is elapsed, end is on the wall

duration=2h for an event at 01:30 on the night of a change of time lasts two real hours. end=2026-10-25T03:30 ends at 03:30 on the wall clock, whatever happened in between. Both are right; pick the one that says what you mean.

All day means dates, without a zone

date=2027-03-31 is 31 March everywhere. An event over several days is written with its last day included (date=2026-12-10 end=2026-12-12, "from the 10th to the 12th"); the feed writes the day after as DTEND, as RFC 5545 asks.

Which zone a page shows

The page is prerendered in the calendar's zone, written beside the times, so that its HTML is the same for everyone. The "Time zone" menu then offers the reader's own zone, and remembers it in the browser: the change happens in the browser, on the instants already computed, with Intl.

The window and the clock

A rule without an end (rrule with neither COUNT nor UNTIL) is expanded in a window around the build day, three months back and twelve ahead by default (window), at most maxOccurrences occurrences per event (calendar-occurrences-capped). The feed keeps the whole rule: a calendar app expands it itself. The build day comes from the build clock, SOURCE_DATE_EPOCH when it is set, so that two builds of the same source give the same page.