Bug 327856 Views don't display events that start and end at 00:00 on the same day, r=dmose

This commit is contained in:
jminta%gmail.com 2006-03-28 02:57:36 +00:00
parent 5f8fd21f92
commit 9f39e126c7
2 changed files with 10 additions and 0 deletions

View File

@ -1130,6 +1130,11 @@
targetDate.second = 0; targetDate.second = 0;
} }
if (targetDate.compare(finishDate) == 0) {
// Zero length events are silly, but we have to handle them
return [this.findBoxForDate(targetDate)];
}
while (targetDate.compare(finishDate) == -1) { while (targetDate.compare(finishDate) == -1) {
var box = this.findBoxForDate(targetDate); var box = this.findBoxForDate(targetDate);

View File

@ -2407,6 +2407,11 @@
targetDate.second = 0; targetDate.second = 0;
} }
if (targetDate.compare(finishDate) == 0) {
// Zero length events are silly, but we have to handle them
return [this.findColumnForDate(targetDate)];
}
while (targetDate.compare(finishDate) == -1) { while (targetDate.compare(finishDate) == -1) {
var col = this.findColumnForDate(targetDate); var col = this.findColumnForDate(targetDate);