From: Jan Schneider Date: Wed, 9 Dec 2009 16:19:48 +0000 (+0100) Subject: Horde_Calendar returns a Date. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a5e45e9c8cef79f7e6219522188b1e78c8e6f291;p=horde.git Horde_Calendar returns a Date. --- 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).