The booking export identifies when Dana’s call happens with a UTC timestamp. UTC means
Coordinated Universal Time; the string’s final Z marks that reference. Dana’s named time zone
supplies the local clock reading.
Python reads the timestamp with datetime.fromisoformat() and converts it with
.astimezone(ZoneInfo(...)). In JavaScript, read the timestamp as a Temporal.Instant first,
then call .toZonedDateTimeISO() with the patient’s zone. ISO names the calendar used here;
it stands for International Organization for Standardization.
Temporal.ZonedDateTime.from() requires a bracketed time zone annotation when it parses a
string. The export’s Z alone does not supply a region’s rules, so the direct port raises a
RangeError. A numeric offset also does not name a region.
This fragment belongs in reminders.js in your existing ~/reminders project. That folder’s
package.json contains { "type": "module" }. The shown appointment is the export’s first
record:
const appt = {
patient: "Dana Whitfield",
clinician: "Callum Reid",
start: "2026-11-01T15:00:00Z",
minutes: 50,
};
const ZONES = {
"Dana Whitfield": "America/New_York",
};
const instant = Temporal.Instant.from(appt.start);
const start = instant.toZonedDateTimeISO(
ZONES[appt.patient],
);
console.log(`${instant}`);
console.log(`${start}`);