From e2ef0103c4c05c38354b620a09fc83c8c299da0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20J=2E=20Hern=C3=A1ndez=20Blasco?= Date: Tue, 19 May 2015 00:01:47 +0200 Subject: [PATCH] oc-calendar: Fix regression on AppointmentTimeZoneDefinitionStartDisplay Introduced by ebe2a466e7 in PR #132 when the event is not all day neither recurrent one. The fix is just to initialise to nil when it is a normal event and it returns NOT_FOUND for this property. --- OpenChange/MAPIStoreAppointmentWrapper.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenChange/MAPIStoreAppointmentWrapper.m b/OpenChange/MAPIStoreAppointmentWrapper.m index 85f923463..4b96a3515 100644 --- a/OpenChange/MAPIStoreAppointmentWrapper.m +++ b/OpenChange/MAPIStoreAppointmentWrapper.m @@ -2080,6 +2080,8 @@ ReservedBlockEE2Size: 00 00 00 00 icalTZ = [iCalTimeZone timeZoneForName: [timeZone timeZoneName]]; else if ([event isRecurrent]) icalTZ = [(iCalDateTime *) [event firstChildWithTag: @"dtstart"] timeZone]; + else + icalTZ = nil; if (icalTZ) {