mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Fixing bug with showing current events for events that start at minight the following day.
This commit is contained in:
parent
7e8b9bba23
commit
f2fd6bd278
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user