зеркало из https://github.com/mozilla/pjs.git
bug 349788 - Fixes missing recurring events for UTC+ timezones. r=ssitter,dmose
This commit is contained in:
Родитель
8c5eac6a95
Коммит
d082dec417
|
@ -347,11 +347,13 @@ calRecurrenceInfo.prototype = {
|
||||||
try {
|
try {
|
||||||
var duration = this.mBaseItem.duration.clone();
|
var duration = this.mBaseItem.duration.clone();
|
||||||
duration.isNegative = true;
|
duration.isNegative = true;
|
||||||
|
searchStart.isDate = false; // workaround for UTC+ timezones
|
||||||
searchStart.addDuration(duration);
|
searchStart.addDuration(duration);
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
dump("recurrence tweaking exception:"+ex+'\n');
|
dump("recurrence tweaking exception:"+ex+'\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// workaround for UTC- timezones
|
||||||
var rangeEnd = aRangeEnd;
|
var rangeEnd = aRangeEnd;
|
||||||
if (rangeEnd && rangeEnd.isDate) {
|
if (rangeEnd && rangeEnd.isDate) {
|
||||||
rangeEnd = aRangeEnd.clone();
|
rangeEnd = aRangeEnd.clone();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче