rem: gEventBeingDragged.start.day = newDay; gEventBeingDragged.end.day = newDay; 
add: var OldStartDate = new Date( gEventBeingDragged.start.getTime() ); var newStartDate = new Date( OldStartDate.getTime() ); newStartDate.setDate( newDay );  var Difference = newStartDate.getTime() - OldStartDate.getTime(); var oldEndDate = new Date( gEventBeingDragged.end.getTime() ); var newEndDate = oldEndDate.getTime() + Difference;  gEventBeingDragged.start.setTime( newStartDate.getTime() ); gEventBeingDragged.end.setTime( newEndDate ); 
context:   onDrop: function (evt,dropdata,session){      //get the date of the current event box.      //dump( "\n\nDROP EVNET->\n"+gEventBeingDragged.start );      var newDay = gBoxBeingDroppedOn.dayNumber;      if( newDay == null )         return;      gEventBeingDragged.start.day = newDay;      gEventBeingDragged.end.day = newDay;      //edit the event being dragged to change its start and end date      //don't change the start and end time though.      gICalLib.modifyEvent( gEventBeingDragged, gEventBeingDragged.parent.server );            //refresh the view  }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/34da6f8b4547a3b15ef0bdcc91f364010e0410c3/calendarMonthView.js/buggy/calendar/resources/content/calendarMonthView.js