mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
bug 363275 - Makes week printout show correct dates for timezones with positive offset from UTC. r1=ssitter, r2=dmose
This commit is contained in:
parent
2d043e82c6
commit
054cd194f8
@ -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()");
|
||||
|
Loading…
Reference in New Issue
Block a user