add: if (isAllDay != gStartTime.isDate){ setShowTimeAs(gStartTime.isDate) } 
context: function editAttendees(){  var savedWindow = window;  var calendar = document.getElementById("item-calendar").selectedItem.calendar;    var callback = function(attendees,organizer,startTime,endTime) {    savedWindow.attendees = attendees;    savedWindow.organizer = organizer;    var duration = endTime.subtractDate(startTime);    startTime = startTime.clone();    endTime = endTime.clone();    endTime.normalize();    startTime.normalize();    var kDefaultTimezone = calendarDefaultTimezone();    gStartTimezone = startTime.timezone;    gEndTimezone = endTime.timezone;    gStartTime = startTime.getInTimezone(kDefaultTimezone);    gEndTime = endTime.getInTimezone(kDefaultTimezone);    gItemDuration = duration;    updateAttendees();    updateDateTime();  };  var startTime = gStartTime.getInTimezone(gStartTimezone);  var endTime = gEndTime.getInTimezone(gEndTimezone);  var isAllDay = getElementValue("event-all-day", "checked");  if (isAllDay) {    startTime.isDate = true;    startTime.normalize();    endTime.isDate = true;    endTime.day += 1;    endTime.normalize();  } else {    startTime.isDate = false;    endTime.isDate = false;  }  var menuItem = document.getElementById('menu-options-timezone');  var displayTimezone = menuItem.getAttribute('checked') == 'true';  var args = new Object();  args.startTime = startTime;  args.endTime = endTime;  args.displayTimezone = displayTimezone;  args.attendees = window.attendees;  args.organizer = window.organizer;  args.calendar = calendar;  args.item = window.calendarItem;  args.onOk = callback;  args.fbWrapper = window.fbWrapper;  // open the dialog modally  openDialog("chrome://calendar/content/sun-calendar-event-dialog-attendees.xul", "_blank", "chrome,titlebar,modal,resizable", args);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/6c3f0f7399cc221089ee72c248e6c99a4b907c3d/sun-calendar-event-dialog.js/buggy/calendar/prototypes/wcap/sun-calendar-event-dialog.js