Prompt
recurring events timezone calendar api
Latest observation
Oct 15, 2026
OpenAI APIWeb search: off
If you mean recurring calendar events with time zones in a calendar API, the key idea is:
- Store the event in a specific time zone
- Define recurrence with an RFC 5545 RRULE-style pattern
- Ensure the API expands occurrences using the event’s local time zone, not just UTC
Core concepts
1. Time zone
Always attach an IANA time zone ID, like:
America/New_YorkEurope/LondonAsia/Tokyo
Avoid fixed offsets like -05:00 if the event recurs, because DST changes will shift the local wall time.
2. Recurrence rule
Typical recurring fields:
RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FRRRULE:FREQ=MONTHLY;BYDAY=TU;BYSETPOS=2
3. Start/end in local time
Example:
- Start:
2026-03-01T09:00:00 - Time zone:
America/Los_Angeles
That means “9 AM Los Angeles time every week,” even when DST changes.
Example payload
{
"summary": "Team meeting",
"start": {
"dateTime": "2026-03-01T09:00:00",
"timeZone": "America/Los_Angeles"
},
"end": {
"dateTime": "2026-03-01T10:00:00",
"timeZone": "America/Los_Angeles"
},
"recurrence": [
"RRULE:FREQ=WEEKLY;BYDAY=MO,WE;COUNT=10"
]
}
Important timezone behavior
DST handling
If the event is “every Monday at 9 AM New York time,” then:
- Before DST: it may be
14:00 UTC - During DST: it may become
13:00 UTC
But the local time remains 9:00 AM.
Occurrence expansion
When your API returns event instances, it should:
- Interpret the recurrence in the event’s timezone
- Convert each occurrence to the viewer’s timezone only at display time
Common pitfalls
- Using UTC only for recurring local events
- Using numeric offsets instead of IANA zones
- Forgetting that DST changes shift UTC time
- Expanding recurrence without timezone awareness
If you’re designing an API
Recommended fields:
start.dateTimestart.timeZoneend.dateTimeend.timeZonerecurrence[]- optional
exdate[]for skipped occurrences - optional
rdate[]for added occurrences
If you meant a specific calendar API
I can also give you examples for:
- Google Calendar API
- Microsoft Graph Calendar API
- CalDAV
- iCalendar/RFC 5545
If you want, I can show a concrete example for one of those.