rem: var newDate = gCalendarWindow.getSelectedDate();  newDate.setDate( eventBox.calendarEventDisplay.event.start.day ); 
add: var newDate = new Date( eventBox.calendarEventDisplay.displayDate ); 
context: function weekEventItemClick( eventBox, event ){   //do this check, otherwise on double click you get into an infinite loop   if( event.detail == 1 )   {      gCalendarWindow.EventSelection.replaceSelection( eventBox.calendarEventDisplay.event );      var newDate = gCalendarWindow.getSelectedDate();      newDate.setDate( eventBox.calendarEventDisplay.event.start.day );      gCalendarWindow.setSelectedDate( newDate, false );   }   if ( event )    {      event.stopPropagation();   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/78c1b45d251e8697d94e328d09694488a883093a/calendar.js/clean/calendar/resources/content/calendar.js