* TODO the conversion of date-only values to date-time is only necessary because xCal doesn't allow date only. iCalendar doesn't seem to make this restriction so it looks like a bug.
*/
KDateTime start = startDate.toUtc();
if (start.isDateOnly()) {
start.setTime(QTime(0,0,0,0));
}
KDateTime end = endDate.toUtc();
if (end.isDateOnly()) {
end.addDays(1);
end.setTime(QTime(0,0,0,0)); //The window is inclusive
attachment->setUri(QString::fromLatin1("cid:")+QString::fromLatin1(KMime::uniqueString() + '@' + "kolab.resource.akonadi")); //Serialize the attachment as attachment with uri, referencing the created mime-part
attachment->setUri(QString::fromLatin1("cid:")+QString::fromLatin1(KMime::uniqueString() + '@' + "kolab.resource.akonadi")); //Serialize the attachment as attachment with uri, referencing the created mime-part