[Kde-pim] Re: KCalCore::Calendar + adding time zones

Patrick Ohly patrick.ohly at gmx.de
Tue May 3 07:58:19 BST 2011


Hello!

One more question about time zones: suppose I have one calendar tied to
a storage (never mind which one) and want to import an iCalendar 2.0
VCALENDAR. I would do it
     1. by parsing the VCALENDAR into a memory calendar
     2. copying incidences
     3. copying time zones

But the last two steps are tricky. The TZID used by the copied
incidences might conflict with a different time zone definition in the
permanent calendar. For example, EST/EDT are used both in the US and in
Australia. Another example are old (pre 2003) and new definitions of the
US time zone definitions.

I added a convenience function to libecal a while back to simplify the
importing of events together with their time zone definitions. It checks
for TZID conflicts and if they exist, renames the TZID consistently in
the events and time zone definitions.

Is there something similar in KCalCore?

I brought this up before in the context of mKCal/MeeGo, without a
resolution. It's currently tracked as:
https://bugs.meego.com/show_bug.cgi?id=8604 - feature request
https://bugs.meego.com/show_bug.cgi?id=8895 - use it in SyncEvolution

-- 
Bye, Patrick Ohly
--  
Patrick.Ohly at gmx.de
http://www.estamos.de/


_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list