From 613e6fd31b97c7a65764b45cd1b07f0e8196638e Mon Sep 17 00:00:00 2001 From: "mikep%oeone.com" Date: Thu, 13 Feb 2003 15:02:58 +0000 Subject: [PATCH] Fixing bug 193018 to show proper end date for repeating events in top list view. --- calendar/resources/content/unifinder.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/resources/content/unifinder.js b/calendar/resources/content/unifinder.js index 52cb1f854df..0778d46ed0d 100644 --- a/calendar/resources/content/unifinder.js +++ b/calendar/resources/content/unifinder.js @@ -539,7 +539,10 @@ var treeView = return( startText ); case "unifinder-search-results-tree-col-enddate": - var eventEndDate = new Date( calendarEvent.end.getTime() ); + var eventEndDate = getNextOrPreviousRecurrence( calendarEvent ); + var eventLength = calendarEvent.end.getTime() - calendarEvent.start.getTime(); + var actualEndDate = eventEndDate.getTime() + eventLength; + var eventEndDate = new Date( actualEndDate ); var endTime = formatUnifinderEventTime( eventEndDate ); var endDate = formatUnifinderEventDate( eventEndDate ); if( calendarEvent.allDay )