rem: var eventEndDateTime = new Date( 2000, 1, 1, calendarEventDisplay.event.end.hour, calendarEventDisplay.event.end.minute, 0 ); 
add: var eventEndDateTime = new Date( 2000, 1, 1, eventEndDate.getHours(), eventEndDate.getMinutes(), 0 ); 
context: DayView.prototype.createEventBox = function dayview_createEventBox( calendarEventDisplay ){   var eventStartDate = calendarEventDisplay.displayDate;   var startHour = eventStartDate.getHours();   var startMinutes = eventStartDate.getMinutes();   var eventEndDateTime = new Date( 2000, 1, 1, calendarEventDisplay.event.end.hour, calendarEventDisplay.event.end.minute, 0 );   var eventStartDateTime = new Date( 2000, 1, 1, eventStartDate.getHours(), eventStartDate.getMinutes(), 0 );   var eventDuration = new Date( eventEndDateTime - eventStartDateTime );      var hourDuration = eventDuration / (3600000);      var eventBox = document.createElement( "vbox" );      var topHeight = eval( ( startHour*kDayViewHourHeight ) + ( ( startMinutes/60 ) * kDayViewHourHeight ) );   topHeight = Math.round( topHeight ) - 1;   eventBox.setAttribute( "top", topHeight );      eventBox.setAttribute( "height", Math.round( ( hourDuration*kDayViewHourHeight ) + 1 ) );      var daywidth = parseInt(document.defaultView.getComputedStyle(document.getElementById("day-tree-item-0"), "").getPropertyValue("width"));   var width = Math.round( ( daywidth-kDayViewHourLeftStart ) / calendarEventDisplay.NumberOfSameTimeEvents );   eventBox.setAttribute( "width", width );      var left = eval( ( ( calendarEventDisplay.CurrentSpot - 1 ) * width )  + kDayViewHourLeftStart );   left = left - ( 1 * ( calendarEventDisplay.CurrentSpot - 1 ));   eventBox.setAttribute( "left", Math.round( left ) );      //if you change this class, you have to change calendarViewDNDObserver in calendarDragDrop.js   eventBox.setAttribute( "class", "day-view-event-class" );   eventBox.setAttribute( "flex", "1" );   eventBox.setAttribute( "eventbox", "dayview" );   eventBox.setAttribute( "onclick", "dayEventItemClick( this, event )" );   eventBox.setAttribute( "ondblclick", "dayEventItemDoubleClick( this, event )" );   // dragdrop events   eventBox.setAttribute( "ondraggesture", "nsDragAndDrop.startDrag(event,calendarViewDNDObserver);" );   eventBox.setAttribute( "ondragover", "nsDragAndDrop.dragOver(event,calendarViewDNDObserver)" );   eventBox.setAttribute( "ondragdrop", "nsDragAndDrop.drop(event,calendarViewDNDObserver)" );   eventBox.setAttribute( "onmouseover", "gCalendarWindow.changeMouseOverInfo( calendarEventDisplay, event )" );   eventBox.setAttribute( "tooltip", "savetip" );   eventBox.setAttribute( "name", "day-view-event-box-"+calendarEventDisplay.event.id );   if( calendarEventDisplay.event.categories && calendarEventDisplay.event.categories != "" )   {      eventBox.setAttribute( calendarEventDisplay.event.categories, "true" );   }   var eventHTMLElement = document.createElement( "label" );   eventHTMLElement.setAttribute( "value", calendarEventDisplay.event.title );   eventHTMLElement.setAttribute( "flex", "1" );   eventHTMLElement.setAttribute( "crop", "end" );   eventBox.appendChild( eventHTMLElement );      /*   if( calendarEventDisplay.event.description != "" )   {      var eventHTMLElement2 = document.createElement( "description" );      eventHTMLElement2.setAttribute( "value", calendarEventDisplay.event.description );      eventHTMLElement2.setAttribute( "flex", "1" );      eventHTMLElement2.setAttribute( "crop", "end" );      eventBox.appendChild( eventHTMLElement2 );   }   */   // add a property to the event box that holds the calendarEvent that the   // box represents      eventBox.calendarEventDisplay = calendarEventDisplay;      this.kungFooDeathGripOnEventBoxes.push( eventBox );            return( eventBox );}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/dayView.js/buggy/calendar/resources/content/dayView.js