[Vobject] Add VTIMEZONE to a new iCalendar-Object

Jeffrey Harris jeffrey at skyhouseconsulting.com
Mon Dec 27 16:31:32 CST 2010


Hi Alex,

> i'd like to add a VTIMEZONE-Component to a new iCalendar.
> 
> What is the best way to construct such an entry? I noticed, that there is something like "registerTzid(tzid, tzinfo)", but i'm not really sure how to make use of it. The documentation only tells me, how to add timezone-info to single dates, which is working fine.

vobject will automatically construct a VTIMEZONE component if you have a datetime DTSTART with a reasonable tzinfo class. You shouldn't need to register a tzid manually.

If that isn't working for you, send some sample code to the list so we can see what might be going wrong.

- Jeffrey


More information about the VObject mailing list