opyebTZMeet

Exporting a time zone meeting as .ics without breaking calendars

Technical · 8 min read

The file is plain text with rules

An .ics file is a text container defined by RFC 5545. It starts with BEGIN:VCALENDAR, carries a VERSION and PRODID, then one or more components. A meeting is a VEVENT with a unique UID, a DTSTAMP in UTC, a start, an end and a summary. Lines end with CRLF and are folded at 75 octets, with continuation lines beginning with a space.

Two ways to say when

FormExampleProsCons
UTCDTSTART:20261130T080000ZUnambiguous, no extra componentsReader must convert mentally; local time is not in the file
TZIDDTSTART;TZID=Europe/Berlin:20261130T090000Local time is explicit; recurrence follows local rulesRequires a correct VTIMEZONE block

Both are valid. The TZID form is friendlier for recurring meetings, because "09:00 Berlin every Monday" is what people mean, while the UTC form is safer for one-off events shared widely, because nothing can be mis-resolved.

What a VTIMEZONE must contain

A VTIMEZONE names the zone and lists observances. Each observance has a DTSTART in local time at the moment of the change, TZOFFSETFROM, TZOFFSETTO and a TZNAME. For a zone with daylight saving, the block needs at least the transitions covering the event dates; TZMeet generates roughly two and a half years around the event so a recurring series stays correct across several changes.

Field tip. If an invitation shows the wrong hour in one client and the right hour in another, the first thing to check is the VTIMEZONE block, not the DTSTART line. A missing or stale observance is the usual culprit.

Escaping and folding

Commas, semicolons and backslashes inside text values must be escaped with a backslash, and newlines become \n. Folding counts octets, not characters, so a Korean or Japanese summary folds earlier than an English one. A file that looks correct in a text editor but breaks Korean text is usually folding inside a multibyte character.

A checklist before you hit send

  1. Open the file in a plain text editor and confirm CRLF line endings.
  2. Check that every TZID= used by a property has a matching BEGIN:VTIMEZONE.
  3. Confirm the UID is unique and stable for the series.
  4. Import into two different clients and compare the displayed time in a third zone.
  5. For a recurring event, check the first occurrence after each DST change in both clients.

What TZMeet exports

One VEVENT with a title, start, duration, a description listing each member's local time and the overlap score, an optional RRULE for weekly, fortnightly or daily repetition, and — in TZID mode — a VTIMEZONE built from the real transitions of the chosen zone. The file is generated in the browser; nothing is uploaded and no server signs it.

When a client still disagrees

Some clients cache time zone data, some ignore VTIMEZONE for zones they already know, and some apply the user's display preference instead of the event's zone. When two clients disagree, export in UTC as well and send both: the UTC file is the arbiter, the TZID file is the convenience.

The smallest correct file

Strip everything optional and a valid single meeting looks like this: a calendar wrapper with version and product id, one event with a UID, a UTC timestamp, a start, an end and a summary, and — when the start uses a zone — a VTIMEZONE block that defines it. No attendees, no alarms, no attachments. That is enough for every major client to import the event at the right time.

Everything else is convenience: a description with local times, a location, a recurrence rule, a category. Add them in that order and test after each addition. When something breaks an import, the last thing you added is the cause, and a minimal file is faster to debug than a rich one.

Keep the minimal version as a fixture. Every time you change the exporter, import the fixture into two clients before you ship.

Work out your own team's overlap with the planner — it takes about a minute and nothing leaves your browser.

Open the planner

Questions

Can I email an .ics file as an attachment?

Yes, that is the normal way. Some clients also accept a text/calendar MIME part, but an attachment is more predictable and avoids inline rendering quirks.

Why does the file show a different time zone name than I chose?

The TZNAME inside VTIMEZONE comes from the zone's own abbreviation, which can be ambiguous, for example GMT+2. The TZID is the authoritative part.

Is a Google Calendar link better than a file?

A link is convenient but proprietary. A file works across Calendar, Outlook, Thunderbird and mobile clients, which is why the export uses the standard format.

Sources

Keep reading