diff --git a/SOPE/NGCards/iCalDateTime.m b/SOPE/NGCards/iCalDateTime.m index 0826c9ffc..8ee622819 100644 --- a/SOPE/NGCards/iCalDateTime.m +++ b/SOPE/NGCards/iCalDateTime.m @@ -86,8 +86,13 @@ tzId = [self value: 0 ofAttribute: @"tzid"]; if ([tzId length]) { - calendar = (iCalCalendar *) [self searchParentOfClass: [iCalCalendar class]]; - timeZone = [calendar timeZoneWithId: tzId]; + //Hack, get timezone inf from sogo and not from the event VTIMEZONE as it can be incorrect/incomplete + timeZone = [iCalTimeZone timeZoneForName: tzId]; + if(!timeZone) + { + calendar = (iCalCalendar *) [self searchParentOfClass: [iCalCalendar class]]; + timeZone = [calendar timeZoneWithId: tzId]; + } //if (!timeZone) //[self logWithFormat: @"timezone '%@' not found in calendar", tzId]; }