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.
pull/84/head^2
Enrique J. Hernández Blasco 2015-05-19 00:01:47 +02:00
parent e6d1a00928
commit e2ef0103c4
1 changed files with 2 additions and 0 deletions

View File

@ -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)
{