ProSchedulerSign in

Features

Recurrence, time zones and order

Repeat events with RRULE-style rules, edit one occurrence or the whole series, store times in one zone and show them in another, and decide which of overlapping events comes first.

Recurring events

Give an event recurring and its start/end become the first occurrence. The rule is an object or an RRULE string; occurrences keep the first one’s clock time across daylight-saving changes. recurringException leaves days out (they still count towards count, as in RFC 5545).

const data = [
  {
    id: "standup",
    title: "Standup",
    start: new Date(2026, 8, 14, 9, 30), // the first occurrence
    end: new Date(2026, 8, 14, 9, 45),
    recurring: { repeat: "weekly", weekDays: "MO,TU,WE,TH,FR" },
    recurringException: ["2026-09-23"], // no standup that day
  },
  { id: "crit", title: "Design crit", start, end, recurring: "FREQ=WEEKLY;BYDAY=TU,TH;COUNT=10" },
  { id: "all-hands", title: "All-hands", start, end, recurring: { repeat: "monthly", weekDays: "1TH" } },
]
Rule fields
ObjectRRULEMeaning
repeatFREQ"daily", "weekly", "monthly" or "yearly"
intervalINTERVALEvery n periods (default 1)
countCOUNTStop after n occurrences
untilUNTILStop after this date
weekDaysBYDAY"MO,WE" or [1, 3]; "2TU" and "-1FR" pick the nth in a month
dayBYMONTHDAYDay(s) of the month; -1 is the last
monthBYMONTHMonth(s) of a yearly rule, 1–12
posBYSETPOSThe nth of the matching days in each period

Occurrences are displayed with the id `${id}_${start}` and recurringEventId set to the series’ id; the default rendering marks them with a repeat icon.

Editing occurrences

Dragging, resizing, editing or deleting an occurrence asks whether the change applies to this event, this and the following, or all of them — or recurringEditMode decides without asking. Either way, your handlers receive plain changes to your own events, so the usual create/update/delete handlers keep working:

What your handlers receive
ChoiceEditDelete
This eventonEventUpdated(series + exception), onEventCreated(single event)onEventUpdated(series + exception)
This and followingonEventUpdated(series ending before it), onEventCreated(new series)onEventUpdated(series ending before it)
All eventsonEventUpdated(series, moved by the same amount)onEventDeleted(series)
<ProScheduler
  data={events}
  recurringEditMode="ask" // or "current" | "following" | "all"
  onEventCreated={(event, info) => setEvents((list) => [...list, { ...event, id: newId() }])}
  onEventUpdated={(event, info) => setEvents((list) => list.map((e) => (e.id === event.id ? event : e)))}
  onEventDeleted={(event, info) => setEvents((list) => list.filter((e) => e.id !== event.id))}
/>

The second argument, info, has the mode, the occurrence as displayed and the originEvent. New events arrive without an id — give them one. The built-in editor has a repeat field that turns any event into a series (daily, weekly, monthly, yearly) or back.

Time zones

displayTimezone shows every view in an IANA zone — today, the current-time line and drags included. dataTimezone says how to read times that carry no zone: floating strings like "2026-09-30T09:00" are wall-clock time there, and recurring events repeat on its clock. Dates and strings with an offset are instants and simply convert. All-day events stay on their calendar day.

<ProScheduler
  data={[{ id: 1, title: "Call", start: "2026-09-30T09:00", end: "2026-09-30T10:00" }]}
  dataTimezone="America/New_York"   // floating strings are New York time
  displayTimezone="Asia/Tokyo"      // …shown in Tokyo: 22:00–23:00
  view={{ scheduler: { type: "week", timezones: ["America/New_York", { timezone: "Europe/London", label: "LDN" }] } }}
/>

Changed times come back in the data’s own format: a floating string stays a floating string in dataTimezone; anything else comes back as a Date. The time grid’s timezones adds a time column per zone. Conversion uses Intl — no time zone library needed.

import { getOccurrences, toZonedTime, fromZonedTime } from "@andreisaac/pro-scheduler/server"

getOccurrences(series, monthStart, monthEnd) // the occurrences in a range
toZonedTime(new Date(), "Asia/Tokyo")        // a Date whose clock reads Tokyo time
fromZonedTime(new Date(2026, 8, 30, 9), "America/New_York") // 09:00 New York, as an instant

Event order

eventOrder compares two events. Events earlier in the order take the top lanes in the timeline, sit further left in the time grid and come first in the calendar and each agenda day — whatever time they start.

<ProScheduler
  eventOrder={(a, b) => a.priority - b.priority}
  …
/>

Agenda templates

renderAgendaDay({ date, events, isToday }) draws each day’s heading, renderAgendaEmpty() the empty page. view.agenda.scrollable: false with height="auto" lets the list grow to fit and the page scroll.