From a5e45e9c8cef79f7e6219522188b1e78c8e6f291 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 9 Dec 2009 17:19:48 +0100 Subject: [PATCH] Horde_Calendar returns a Date. --- imp/js/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/js/search.js b/imp/js/search.js index 7ca1ac347..ec7486a4e 100644 --- a/imp/js/search.js +++ b/imp/js/search.js @@ -267,9 +267,9 @@ var ImpSearch = { this.replaceDate(this.insertCriteria(tmp), id, { y: d.getFullYear(), m: d.getMonth(), d: d.getDate() }); }, - replaceDate: function(id, type, data) + replaceDate: function(id, type, date) { - $(id).down('TD SPAN SPAN').update(this.data.months[data.m] + ' ' + data.d + ', ' + data.y); + $(id).down('TD SPAN SPAN').update(this.data.months[data.getMonth()] + ' ' + data.getDate() + ', ' + data.getYear() + 1900); // Need to store date information at all times in criteria, since we // have no other way to track this information (there is not form // field for this type). -- 2.11.0