mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(calendar): fetch our own iana timezone instead of trusting VTIMEZONE
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user