Bug 1498152 - All-day items are displayed one day too long in summary dialog. r=philipp
This commit is contained in:
Родитель
a6a43d55fb
Коммит
8004d8e579
|
@ -34,7 +34,7 @@
|
|||
</property>
|
||||
<property name="Item">
|
||||
<getter><![CDATA[
|
||||
return mItem;
|
||||
return this.mItem;
|
||||
]]></getter>
|
||||
<setter><![CDATA[
|
||||
this.mItem = val;
|
||||
|
@ -62,6 +62,12 @@
|
|||
label = this.getAttribute("eventEndLabel");
|
||||
}
|
||||
headerLabel.value = label;
|
||||
if (date.isDate) {
|
||||
// for all-day items the end/due date is not inclusive,
|
||||
// so we tweak this to display what the user expects
|
||||
date = date.clone();
|
||||
date.day -= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
let hideLabels = (date == null);
|
||||
|
|
Загрузка…
Ссылка в новой задаче