+2005-09-22 Helge Hess <helge.hess@skyrix.com>
+
+ * iCalRecurrenceRule.m: added direct parser support for 'interval',
+ allow 'until' values w/o Z marker for date-only values (v4.5.68)
+
2005-09-22 Helge Hess <helge.hess@opengroupware.org>
* v4.5.67
NSString *pByday = nil;
NSString *pBymday = nil;
NSString *pBysetpos = nil;
+ NSString *pInterval = nil;
props = [_rrule componentsSeparatedByString:@";"];
for (i = 0, count = [props count]; i < count; i++) {
case 'f':
if ([key isEqualToString:@"freq"]) { vHolder = &pFrequency; break; }
break;
+ case 'i':
+ if ([key isEqualToString:@"interval"]) { vHolder = &pInterval; break; }
+ break;
case 'u':
if ([key isEqualToString:@"until"]) { vHolder = &pUntil; break; }
break;
[self errorWithFormat:@"rrule contains no frequency: '%@'", _rrule];
[pFrequency release]; pFrequency = nil;
+ if (pInterval != nil)
+ self->interval = [pInterval intValue];
+ [pInterval release]; pInterval = nil;
+
// TODO: we should parse byday in here
if (pByday != nil) [self setByday:pByday];
[pByday release]; pByday = nil;
UTC time format."
TODO: we still need some object representing a 'timeless' date.
*/
- if (![pUntil hasSuffix:@"Z"]) {
+ if (![pUntil hasSuffix:@"Z"] && [pUntil length] > 8) {
[self warnWithFormat:@"'until' date has no explicit UTC marker: '%@'",
_rrule];
}