зеркало из https://github.com/mozilla/gecko-dev.git
bug 332738: show the right end-date in the unifinder, and display all-day for allday events. r=jminta
This commit is contained in:
Родитель
633289e70f
Коммит
be01b02f06
|
@ -140,6 +140,9 @@ function formatDateWithoutYear(aDate) {
|
|||
|
||||
calDateTimeFormatter.prototype.formatTime =
|
||||
function formatTime(aDate) {
|
||||
if (aDate.isDate)
|
||||
return this.mDateStringBundle.GetStringFromName("AllDay");
|
||||
|
||||
return this.mDateService.FormatTime("",
|
||||
nsIScriptableDateFormat.timeFormatNoSeconds,
|
||||
aDate.hour,
|
||||
|
|
|
@ -467,8 +467,11 @@ var treeView =
|
|||
var eventEndDate = calendarEvent.endDate.clone();
|
||||
// XXX reimplement
|
||||
//var eventEndDate = getCurrentNextOrPreviousRecurrence( calendarEvent );
|
||||
if (calendarEvent.startDate.isDate) // display enddate is ical enddate - 1
|
||||
if (calendarEvent.startDate.isDate) {
|
||||
// display enddate is ical enddate - 1
|
||||
eventEndDate.day = eventEndDate.day - 1;
|
||||
eventEndDate.normalize();
|
||||
}
|
||||
return formatUnifinderEventDateTime(eventEndDate);
|
||||
|
||||
case "unifinder-search-results-tree-col-categories":
|
||||
|
|
Загрузка…
Ссылка в новой задаче