bug 363275 - Makes week printout show correct dates for timezones with positive offset from UTC. r1=ssitter, r2=dmose

This commit is contained in:
mattwillis%gmail.com 2006-12-14 23:26:26 +00:00
parent 2d043e82c6
commit 054cd194f8

View File

@ -132,8 +132,14 @@ function getDialogSettings()
eventList = theView.getSelectedItems({});
break;
case 'custom':
// We return the time from the timepickers using the selected
// timezone, as not doing so in timezones with a positive offset
// from UTC may cause the printout to include the wrong days.
var currentTimezone = calendarDefaultTimezone();
start = jsDateToDateTime(document.getElementById("start-date-picker").value);
start = start.getInTimezone(currentTimezone);
end = jsDateToDateTime(document.getElementById("end-date-picker").value);
end = end.getInTimezone(currentTimezone);
break ;
default :
dump("Error : no case in printDialog.js::printCalendar()");