add:  if( calendarEvent.method == 0 ) calendarEvent.method = calendarEvent.ICAL_METHOD_PUBLISH; if( calendarEvent.stamp.year ==  0 ) calendarEvent.stamp.setTime( new Date() );  
context: function eventArrayToICalString( calendarEventArray, doPatchForExport ){      if( !calendarEventArray)      calendarEventArray = gCalendarWindow.EventSelection.selectedEvents;   var sTextiCalendar = "";   for( var eventArrayIndex = 0;  eventArrayIndex < calendarEventArray.length; ++eventArrayIndex )   {      var calendarEvent = calendarEventArray[ eventArrayIndex ];      // convert time to represent local to produce correct DTSTART and DTEND      if(calendarEvent.allDay != true)      convertLocalToZulu( calendarEvent );           if ( doPatchForExport )        sTextiCalendar += patchICalStringForExport( calendarEvent.getIcalString() );      else        sTextiCalendar += calendarEvent.getIcalString() ;   }   return sTextiCalendar;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b0dd42b47458c02022ad803b02bddbf881b78c6c/calendarImportExport.js/clean/calendar/resources/content/calendarImportExport.js