Monotone-Parent: cbe26077e3038a934e225a1903e28b89cf90c61d
Monotone-Revision: cbef49b9665bb4860d576825ae411fd212ee0d08 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-20T18:47:05 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
73ad59a633
commit
4d60fa4dc3
|
@ -1,5 +1,8 @@
|
|||
2012-03-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/NSDate+MAPIStore.m (-isNever): new accessor for dates
|
||||
occurring in 4500.
|
||||
|
||||
* OpenChange/MAPIStoreTypes.m (MAPIChangeKeyGUIDCompare): NSData
|
||||
arguments passed as "id" due to the pickiness of some versions of
|
||||
gcc.
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
+ (id) dateFromFileTime: (const struct FILETIME *) timeValue;
|
||||
- (struct FILETIME *) asFileTimeInMemCtx: (void *) memCtx;
|
||||
|
||||
- (BOOL) isNever; /* occurs on 4500-12-31 */
|
||||
|
||||
@end
|
||||
|
||||
#endif /* NSCALENDARDATE+MAPISTORE_H */
|
||||
|
|
|
@ -114,4 +114,17 @@ _setupRefDate ()
|
|||
return timeValue;
|
||||
}
|
||||
|
||||
- (BOOL) isNever /* occurs on 4500-12-31 */
|
||||
{
|
||||
NSCalendarDate *calDate;
|
||||
|
||||
if ([self isKindOfClass: [NSCalendarDate class]])
|
||||
calDate = (NSCalendarDate *) self;
|
||||
else
|
||||
calDate = [NSCalendarDate dateWithTimeIntervalSince1970:
|
||||
[self timeIntervalSince1970]];
|
||||
|
||||
return [calDate yearOfCommonEra] == 4500;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in New Issue