Monotone-Parent: b7715dca41945ec8af6e621dd1ca4d2406198824
Monotone-Revision: b87371b5b686da6d0d84e233c3ffbd8f8f9fbe1f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-10-18T18:30:37 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
864a888124
commit
0a4c54b063
|
@ -130,8 +130,8 @@ static NSMutableDictionary *cache;
|
||||||
return [[self uniqueChildWithTag: @"tzid"] value: 0];
|
return [[self uniqueChildWithTag: @"tzid"] value: 0];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSCalendarDate *) _occurenceForPeriodNamed: (NSString *) pName
|
- (NSCalendarDate *) _occurrenceForPeriodNamed: (NSString *) pName
|
||||||
forDate: (NSCalendarDate *) aDate
|
forDate: (NSCalendarDate *) aDate
|
||||||
{
|
{
|
||||||
NSArray *periods;
|
NSArray *periods;
|
||||||
iCalTimeZonePeriod *period;
|
iCalTimeZonePeriod *period;
|
||||||
|
@ -157,10 +157,10 @@ static NSMutableDictionary *cache;
|
||||||
/* FIXME, this could cause crashes when timezones are not properly
|
/* FIXME, this could cause crashes when timezones are not properly
|
||||||
specified, but let's say it won't happen often... */
|
specified, but let's say it won't happen often... */
|
||||||
|
|
||||||
daylightOccurence = [self _occurenceForPeriodNamed: @"daylight"
|
daylightOccurence = [self _occurrenceForPeriodNamed: @"daylight"
|
||||||
forDate: date];
|
forDate: date];
|
||||||
standardOccurence = [self _occurenceForPeriodNamed: @"standard"
|
standardOccurence = [self _occurrenceForPeriodNamed: @"standard"
|
||||||
forDate: date];
|
forDate: date];
|
||||||
|
|
||||||
if (!standardOccurence)
|
if (!standardOccurence)
|
||||||
period = (iCalTimeZonePeriod *) [self uniqueChildWithTag: @"daylight"];
|
period = (iCalTimeZonePeriod *) [self uniqueChildWithTag: @"daylight"];
|
||||||
|
|
Loading…
Reference in New Issue