rem: var eventStartDate = new Date( result.value ); 
add: eventStartDate = new Date( result.value ); 
context: function getNextOrPreviousRecurrence( calendarEvent ){   var isValid = false;   if( calendarEvent.recur )   {      var now = new Date();      var result = new Object();      isValid = calendarEvent.getNextRecurrence( now.getTime(), result );      if( isValid )      {         var eventStartDate = new Date( result.value );      }      else      {         isValid = calendarEvent.getPreviousOccurrence( now.getTime(), result );                  var eventStartDate = new Date( result.value );      }   }      if( !isValid )   {      var eventStartDate = new Date( calendarEvent.start.getTime() );   }         return eventStartDate;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/76b784fca4394a565ab5193c3d63c72fbff3d57a/calendarEvent.js/buggy/calendar/resources/content/calendarEvent.js