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

git-svn-id: svn://10.0.0.236/trunk@216996 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mattwillis%gmail.com
2006-12-14 23:26:39 +00:00
parent 58c4c002b2
commit 8d457acb68

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()");