diff --git a/ChangeLog b/ChangeLog index 71cf6c265..fdf27b941 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-07-27 Wolfgang Sourdeau + * OpenChange/MAPIStoreAppointmentWrapper.m + (-getPidLidGlobalObjectId:inMemCtx:): work-around certain buggy + events which might now have a "CREATED" element. + * OpenChange/MAPIStoreContactsMessage.m: commented out "-getPrOabName:inMemCtx:" and "-getPrOabLangid:inMemCtx:" as they seem to be useful only for contact lists. diff --git a/OpenChange/MAPIStoreAppointmentWrapper.m b/OpenChange/MAPIStoreAppointmentWrapper.m index 4922064d2..e72621e97 100644 --- a/OpenChange/MAPIStoreAppointmentWrapper.m +++ b/OpenChange/MAPIStoreAppointmentWrapper.m @@ -396,6 +396,13 @@ _fillAppointmentRecurrencePattern (struct AppointmentRecurrencePattern *arp, /* /FIXME */ creationTime = [event created]; + if (!creationTime) + { + [self logWithFormat: @"" __location__ ": event has no 'CREATED' tag -> inventing one"]; + creationTime = [event lastModified]; + if (!creationTime) + creationTime = [NSCalendarDate date]; + } creationFileTime = [creationTime asFileTimeInMemCtx: NULL]; [nsData appendBytes: &creationFileTime->dwLowDateTime length: 4]; [nsData appendBytes: &creationFileTime->dwHighDateTime length: 4];