Skip to main content

BlogScheduling & Ops

Deterministic Exam Scheduling Across IANA Timezones and DST Transitions

Marcus VancePrincipal Distributed Systems Engineer
2 min read

UTC Epoch Milliseconds + Canonical IANA Timezones

Storing all schedule boundaries as integer UTC epoch milliseconds paired with the schedule's IANA timezone identifier ensures that a 60-minute exam starting before a DST spring-forward transition still grants examinees a full 60 real minutes.

Presenting both the official Schedule IANA Timezone and the candidate's local browser timezone side-by-side eliminates cross-border attendance confusion.

On November 1, 2026, New York turns its clocks back one hour during this example exam window. Kolkata keeps the same offset throughout. The window lasts four hours in both places, even though New York's clock moves from 12:30 AM to 3:30 AM.

One four-hour exam window on November 1, 2026
Time zoneOpensCloses
New York12:30 AM EDT3:30 AM EST
Kolkata10:00 AM IST2:00 PM IST
deadline_at = starts_at_utc_ms + (duration_minutes + extra_time_minutes) * 60_000;

Serialized BEGIN IMMEDIATE Capacity Enforcement

Two administrators each see one seat left for the same sitting and try to assign different candidates. TeachAI checks capacity again as it saves each assignment, so only the first one saved gets the seat.

Two assignments for the last seat
AdministratorOutcomeNext action
Amina assigns SamSaved. Sam gets the last seat.Send Sam the exam invitation.
Dev assigns LeeBlocked. The sitting is full.Choose another sitting for Lee.

Put these assessment practices to work in TeachAI