Skip to content
Discussion options

You must be logged in to vote

The sample shown should be accepted by the current importer. UTF-8 text such as Réunion is supported, a timestamp ending in Z is parsed as UTC, and the importer does not validate the UID format.

At END:VEVENT, the importer rejects an event only when it lacks a usable SUMMARY or a parseable DTSTART: source. Your pasted event contains both. That suggests the original bytes differ from the normalized text in the post, or an exception occurs while reading or inserting the event.

When generating the file with Python icalendar, write the bytes returned by to_ical() directly:

from pathlib import Path

Path("event.ics").write_bytes(calendar.to_ical())

Do not wrap the result in str(...); that can …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Big-bros
Comment options

Answer selected by Big-bros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants