rem: var dueDate = gCalendarWindow.currentView.getNewEventDate(); 
add: var startDate = gCalendarWindow.currentView.getNewEventDate(); 
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: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d801d14a6bdaf22b7c6518182ed10af2b2d4226e/calendar.js/buggy/calendar/resources/content/calendar.js