Monotone-Parent: 49e9c5bd210d89a7731744a1af6593223adab775
Monotone-Revision: ed60dc2436a8163bc04661e1f66b3a3d30c2284c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-29T19:43:51 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
7dfc20e461
commit
5f81312c63
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* iCalDateTime.m ([iCalDateTime -timeZone]): log a message if the
|
||||||
|
corresponding timezone isn't found.
|
||||||
|
|
||||||
2007-11-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2007-11-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
* iCalCalendar.m ([iCalCalendar -versitString]): same as below,
|
* iCalCalendar.m ([iCalCalendar -versitString]): same as below,
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
#import <Foundation/NSString.h>
|
#import <Foundation/NSString.h>
|
||||||
#import <Foundation/NSTimeZone.h>
|
#import <Foundation/NSTimeZone.h>
|
||||||
|
|
||||||
|
#import <NGExtensions/NSObject+Logs.h>
|
||||||
|
|
||||||
#import "NSCalendarDate+NGCards.h"
|
#import "NSCalendarDate+NGCards.h"
|
||||||
#import "NSString+NGCards.h"
|
#import "NSString+NGCards.h"
|
||||||
|
|
||||||
|
@ -76,13 +78,17 @@
|
||||||
NSString *tzId;
|
NSString *tzId;
|
||||||
iCalTimeZone *timeZone;
|
iCalTimeZone *timeZone;
|
||||||
|
|
||||||
|
timeZone = nil;
|
||||||
|
|
||||||
tzId = [self value: 0 ofAttribute: @"tzid"];
|
tzId = [self value: 0 ofAttribute: @"tzid"];
|
||||||
calendar
|
if ([tzId length])
|
||||||
= (iCalCalendar *) [self searchParentOfClass: [iCalCalendar class]];
|
{
|
||||||
if ([tzId length] && calendar)
|
calendar
|
||||||
timeZone = [calendar timeZoneWithId: tzId];
|
= (iCalCalendar *) [self searchParentOfClass: [iCalCalendar class]];
|
||||||
else
|
timeZone = [calendar timeZoneWithId: tzId];
|
||||||
timeZone = nil;
|
if (!timeZone)
|
||||||
|
[self logWithFormat: @"timezone '%@' not found in calendar", tzId];
|
||||||
|
}
|
||||||
|
|
||||||
return timeZone;
|
return timeZone;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue