[fix] Issues with freebusy in attendees editor
parent
94d546dc7a
commit
ab121e6c15
1
NEWS
1
NEWS
|
@ -9,6 +9,7 @@ Bug fixes
|
|||
- now keep the BodyPreference for future EAS use and default to MIME if none set (#3146)
|
||||
- EAS reply fix when message/rfc822 parts are included in the original mail (#3153)
|
||||
- fix yet an other potential crash during freebusy lookups during timezone changes
|
||||
- fix display of freebusy information in event attendees editor during timezone changes
|
||||
|
||||
2.2.17a (2015-03-15)
|
||||
--------------------
|
||||
|
|
|
@ -130,7 +130,7 @@ Date.prototype.deltaDays = function(otherDate) {
|
|||
day1 = tmp;
|
||||
}
|
||||
|
||||
return Math.floor((day2 - day1) / 86400000);
|
||||
return Math.round((day2 - day1) / 86400000);
|
||||
}
|
||||
|
||||
Date.prototype.daysUpTo = function(otherDate) {
|
||||
|
@ -152,7 +152,7 @@ Date.prototype.daysUpTo = function(otherDate) {
|
|||
// var day1 = day1Date.getTime();
|
||||
// var day2 = day2Date.getTime();
|
||||
|
||||
var nbrDays = Math.floor((day2 - day1) / 86400000) + 1;
|
||||
var nbrDays = Math.round((day2 - day1) / 86400000) + 1;
|
||||
for (var i = 0; i < nbrDays; i++) {
|
||||
var newDate = new Date();
|
||||
newDate.setTime(day1 + (i * 86400000));
|
||||
|
@ -217,9 +217,8 @@ Date.prototype.stringWithSeparator = function(separator) {
|
|||
};
|
||||
|
||||
Date.prototype.addDays = function(nbrDays) {
|
||||
var milliSeconds = this.getTime();
|
||||
milliSeconds += 86400000 * Math.round(nbrDays);
|
||||
this.setTime(milliSeconds);
|
||||
var dat = new Date(this.valueOf());
|
||||
this.setDate(dat.getDate() + Math.round(nbrDays));
|
||||
};
|
||||
|
||||
Date.prototype.earlierDate = function(otherDate) {
|
||||
|
|
|
@ -391,6 +391,12 @@ function redisplayEventSpans() {
|
|||
etHour++;
|
||||
}
|
||||
|
||||
if (isAllDay) {
|
||||
addDays++;
|
||||
stHour = stMinute = 0;
|
||||
etHour = etMinute = 0;
|
||||
}
|
||||
|
||||
if (stHour < displayStartHour) {
|
||||
stHour = displayStartHour;
|
||||
stMinute = 0;
|
||||
|
@ -432,8 +438,10 @@ function redisplayEventSpans() {
|
|||
if (currentSpanNbr > 3) {
|
||||
currentSpanNbr = 0;
|
||||
currentCellNbr++;
|
||||
currentCell = row.cells[currentCellNbr];
|
||||
spans = $(currentCell).childNodesWithTag("span");
|
||||
if (currentCellNbr < row.cells.length) {
|
||||
currentCell = row.cells[currentCellNbr];
|
||||
spans = $(currentCell).childNodesWithTag("span");
|
||||
}
|
||||
}
|
||||
deltaSpans--;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue