Fixing bug with showing current events for events that start at minight the following day.

This commit is contained in:
mikep%oeone.com 2002-09-19 15:48:51 +00:00
parent 7e8b9bba23
commit f2fd6bd278

View File

@ -539,8 +539,7 @@ function getEventTable( )
case "current":
var SelectedDate = gCalendarWindow.getSelectedDate();
MidnightSelectedDate = new Date( SelectedDate.getFullYear(), SelectedDate.getMonth(), SelectedDate.getDate(), 0, 0, 0 );
var EndDate = new Date( MidnightSelectedDate.getTime() + ( 1000 * 60 * 60 * 24 ) );
var EndDate = new Date( MidnightSelectedDate.getTime() + ( 1000 * 60 * 60 * 24 ) - 1000 );
eventTable = gEventSource.getEventsForRange( MidnightSelectedDate, EndDate );
break;
default: