Monotone-Parent: cbe26077e3038a934e225a1903e28b89cf90c61d
Monotone-Revision: cbef49b9665bb4860d576825ae411fd212ee0d08 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-03-20T18:47:05 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
73ad59a633
commit
4d60fa4dc3
|
@ -1,5 +1,8 @@
|
||||||
2012-03-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
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
|
* OpenChange/MAPIStoreTypes.m (MAPIChangeKeyGUIDCompare): NSData
|
||||||
arguments passed as "id" due to the pickiness of some versions of
|
arguments passed as "id" due to the pickiness of some versions of
|
||||||
gcc.
|
gcc.
|
||||||
|
|
|
@ -33,6 +33,8 @@
|
||||||
+ (id) dateFromFileTime: (const struct FILETIME *) timeValue;
|
+ (id) dateFromFileTime: (const struct FILETIME *) timeValue;
|
||||||
- (struct FILETIME *) asFileTimeInMemCtx: (void *) memCtx;
|
- (struct FILETIME *) asFileTimeInMemCtx: (void *) memCtx;
|
||||||
|
|
||||||
|
- (BOOL) isNever; /* occurs on 4500-12-31 */
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif /* NSCALENDARDATE+MAPISTORE_H */
|
#endif /* NSCALENDARDATE+MAPISTORE_H */
|
||||||
|
|
|
@ -114,4 +114,17 @@ _setupRefDate ()
|
||||||
return timeValue;
|
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
|
@end
|
||||||
|
|
Loading…
Reference in a new issue