2004-08-25 Marcus Mueller <znek@mulle-kybernetik.com>
+ * UIxAppointmentProposal.m: changed -isSecondHalfGreen and
+ -isSlotRangeGreen due to a bugfix in NGExtensions (v0.9.70)
+
* v0.9.69
* UIxAppointmentProposal.m: completed edit functionality. Resources and
idx = [self->blockedRanges indexOfFirstIntersectingDateRange:_range];
if (idx != NSNotFound) {
- [self debugWithFormat:@"blocked range:\n range: %@\n block: %@",
+ [self debugWithFormat:@"blocked range:\n range: %@\n block: %@\nintersection:%@",
_range,
- [self->blockedRanges objectAtIndex:idx]];
+ [self->blockedRanges objectAtIndex:idx],
+ [_range intersectionDateRange:[self->blockedRanges objectAtIndex:idx]]];
}
return idx == NSNotFound ? YES : NO;
aptStartDate = [_slotRange startDate];
aptEndDate = [[NSCalendarDate alloc] initWithTimeIntervalSince1970:
[aptStartDate timeIntervalSince1970]
- + [self durationAsTimeInterval] - 1];
+ + [self durationAsTimeInterval]];
[aptStartDate setTimeZone:[self viewTimeZone]];
[aptEndDate setTimeZone:[self viewTimeZone]];
aptRange = [NGCalendarDateRange calendarDateRangeWithStartDate:aptStartDate
NSCalendarDate *from, *to;
NGCalendarDateRange *range;
- from = [self->currentDay hour:[[self item] intValue] minute:30];
- to = [self->currentDay hour:[[self item] intValue] minute:59];
+ from = [self->currentDay hour:[[self item] intValue] minute:30];
+ to = [self->currentDay hour:[[self item] intValue] + 1 minute:0];
range = [NGCalendarDateRange calendarDateRangeWithStartDate:from endDate:to];
return [self isSlotRangeGreen:range];
}