-2004-08-16 Marcus Mueller <znek@mulle-kybernetik.com>
+2004-08-16 Helge Hess <helge.hess@skyrix.com>
- * v0.9.64
+ * UIxAppointmentProposal.m: small bugfix to range processing (v0.9.65)
+
+2004-08-16 Marcus Mueller <znek@mulle-kybernetik.com>
- * UIxTimeDateControl.m: removed a debug log.
+ * UIxTimeDateControl.m: removed a debug log. (v0.9.64)
* v0.9.63
current = base;
while ([current compare:stop] != NSOrderedDescending) {
+ [current setTimeZone:[self viewTimeZone]];
[ma addObject:current];
/* Note: remember the timezone behaviour of the method below! */
- (BOOL)isRangeGreen:(NGCalendarDateRange *)_range {
unsigned idx;
-
+
idx = [self->blockedRanges indexOfFirstIntersectingDateRange:_range];
- if (idx != NSNotFound)
- return NO;
+ if (idx != NSNotFound) {
+ [self debugWithFormat:@"blocked range:\n range: %@\n block: %@",
+ _range,
+ [self->blockedRanges objectAtIndex:idx]];
+ }
- return YES;
+ return idx == NSNotFound ? YES : NO;
}
- (BOOL)isSlotRangeGreen:(NGCalendarDateRange *)_slotRange {
aptStartDate = [_slotRange startDate];
aptEndDate = [[NSCalendarDate alloc] initWithTimeIntervalSince1970:
[aptStartDate timeIntervalSince1970]
- + [self durationAsTimeInterval]];
+ + [self durationAsTimeInterval] - 1];
[aptStartDate setTimeZone:[self viewTimeZone]];
[aptEndDate setTimeZone:[self viewTimeZone]];
aptRange = [NGCalendarDateRange calendarDateRangeWithStartDate:aptStartDate