add:  gDuration = gEndDate.getTime() - gStartDate.getTime();  
context: function commandAllDay(){  //user enddate == ical enddate - 1 (for allday events)  if( getFieldValue( "all-day-event-checkbox", "checked" ) ) {    gEndDate.setDate( gEndDate.getDate() + 1 );  } else {     gEndDate.setDate( gEndDate.getDate() - 1 );  }   updateStartEndItemEnabled();   updateOKButton();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0e4c4c1629766c82f51d4cab577f4eb4f781863c/eventDialog.js/buggy/calendar/resources/content/eventDialog.js