diff --git a/mozilla/calendar/resources/content/calendarWindow.js b/mozilla/calendar/resources/content/calendarWindow.js index 220829c013f..8f07695e2bc 100644 --- a/mozilla/calendar/resources/content/calendarWindow.js +++ b/mozilla/calendar/resources/content/calendarWindow.js @@ -337,7 +337,15 @@ CalendarWindow.prototype.goToPrevious = function calWin_goToPrevious( value ) CalendarWindow.prototype.goToDay = function calWin_goToDay( newDate ) { - document.getElementById("view-deck").selectedPanel.goToDay(jsDateToDateTime(newDate)); + var view = document.getElementById("view-deck").selectedPanel; + var cdt = Components.classes["@mozilla.org/calendar/datetime;1"] + .createInstance(Components.interfaces.calIDateTime); + cdt.year = newDate.getFullYear(); + cdt.month = newDate.getMonth(); + cdt.day = newDate.getDate(); + cdt.isDate = true; + cdt.timezone = view.timezone; + view.goToDay(cdt); } /** PUBLIC