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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user