Bug 339509 (Sunbird version) Wrong day selected in views if selected timezone does not match system timezone, patch by thomas.benisch@sun.com, r=jminta

git-svn-id: svn://10.0.0.236/trunk@198896 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jminta%gmail.com
2006-06-02 19:59:11 +00:00
parent 70e8175a44
commit 90e1f58ced

View File

@@ -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