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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c268b4210ace436cf7533a856c3e5f93c2e47e0d/eventDialog.js/clean/calendar/resources/content/eventDialog.js