Set the date before the month, or else events might not show up on the 31th.
bug 302891, patch by jminta, r=mvl git-svn-id: svn://10.0.0.236/trunk@176979 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -356,12 +356,12 @@ DayView.prototype.addToDisplayList = function(itemOccurrence, startDate, endDate
|
||||
//startDate.jsDate is not
|
||||
var adjustedStartDate = new Date();
|
||||
var adjustedEndDate = new Date();
|
||||
adjustedStartDate.setFullYear(startDate.year);
|
||||
adjustedStartDate.setMonth(startDate.month);
|
||||
adjustedStartDate.setDate(startDate.day);
|
||||
adjustedEndDate.setFullYear(endDate.year);
|
||||
adjustedEndDate.setMonth(endDate.month);
|
||||
adjustedStartDate.setMonth(startDate.month);
|
||||
adjustedStartDate.setFullYear(startDate.year);
|
||||
adjustedEndDate.setDate(endDate.day);
|
||||
adjustedEndDate.setMonth(endDate.month);
|
||||
adjustedEndDate.setFullYear(endDate.year);
|
||||
|
||||
// Check if the event is within the bounds of events to be displayed.
|
||||
if ((adjustedEndDate < this.displayStartDate) ||
|
||||
|
||||
@@ -325,9 +325,9 @@ MonthView.prototype.createEventBoxInternal = function(itemOccurrence, startDate,
|
||||
//This is a HACK because startDate and indexOfDate don't get along well
|
||||
//in terms of timezones.
|
||||
var adjustedDate = new Date();
|
||||
adjustedDate.setFullYear(startDate.year);
|
||||
adjustedDate.setMonth(startDate.month);
|
||||
adjustedDate.setDate(startDate.day);
|
||||
adjustedDate.setMonth(startDate.month);
|
||||
adjustedDate.setFullYear(startDate.year);
|
||||
dayBoxItem = this.dayBoxItemArray[this.indexOfDate(adjustedDate)];
|
||||
if (!dayBoxItem)
|
||||
return;
|
||||
|
||||
@@ -342,9 +342,9 @@ MultiweekView.prototype.createEventBoxInternal = function multiweekView_createEv
|
||||
//This is a HACK because startDate and indexOfDate don't get along well
|
||||
//in terms of timezones.
|
||||
var adjustedDate = new Date();
|
||||
adjustedDate.setFullYear(startDate.year);
|
||||
adjustedDate.setMonth(startDate.month);
|
||||
adjustedDate.setDate(startDate.day);
|
||||
adjustedDate.setMonth(startDate.month);
|
||||
adjustedDate.setFullYear(startDate.year);
|
||||
var DisplayDate = new Date(adjustedDate);
|
||||
dayBoxItem = this.dayBoxItemArray[this.indexOfDate(DisplayDate)];
|
||||
// Check if the day is visible
|
||||
|
||||
@@ -375,12 +375,12 @@ WeekView.prototype.createEventBoxInternal = function (event)
|
||||
//event.start.jsDate is not!
|
||||
var adjustedStartDate = new Date();
|
||||
var adjustedEndDate = new Date();
|
||||
adjustedStartDate.setFullYear(startDate.year);
|
||||
adjustedStartDate.setMonth(startDate.month);
|
||||
adjustedStartDate.setDate(startDate.day);
|
||||
adjustedEndDate.setFullYear(endDate.year);
|
||||
adjustedEndDate.setMonth(endDate.month);
|
||||
adjustedStartDate.setMonth(startDate.month);
|
||||
adjustedStartDate.setFullYear(startDate.year);
|
||||
adjustedEndDate.setDate(endDate.day);
|
||||
adjustedEndDate.setMonth(endDate.month);
|
||||
adjustedEndDate.setFullYear(endDate.year);
|
||||
|
||||
// Check if the event is within the bounds of events to be displayed.
|
||||
if ((adjustedEndDate < this.displayStartDate) ||
|
||||
|
||||
Reference in New Issue
Block a user