fix(calendar): fetch our own iana timezone instead of trusting VTIMEZONE

This commit is contained in:
Hivert Quentin
2025-08-01 11:56:06 +02:00
parent dfcbbba514
commit 244d1388eb

View File

@@ -85,9 +85,14 @@
tzId = [self value: 0 ofAttribute: @"tzid"];
if ([tzId length])
{
//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];
}