rem: calendarToDo.due.setTime( dueDate ); 
add: var dueDateTime = startDate.getTime() + ( 1000 * 60 * MinutesToAddOn ); 
context: function newToDoCommand(){   var calendarToDo = createToDo();   var dueDate = gCalendarWindow.currentView.getNewEventDate();         var Minutes = Math.ceil( dueDate.getMinutes() / 5 ) * 5 ;      dueDate = new Date( dueDate.getFullYear(),                       dueDate.getMonth(),                       dueDate.getDate(),                       dueDate.getHours(),                       Minutes,                       0);      calendarToDo.due.setTime( dueDate );   calendarToDo.start.setTime( dueDate );      var args = new Object();   args.mode = "new";   args.onOk =  self.addToDoDialogResponse;   args.calendarToDo = calendarToDo;   window.setCursor( "wait" );   // open the dialog modally   openDialog("chrome://calendar/content/toDoDialog.xul", "caEditEvent", "chrome,modal", args );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ad333820dfa9808dfdff71456327a917948d218e/calendar.js/buggy/calendar/resources/content/calendar.js