add:  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';  
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;    gStartTime = startTime;    gEndTime = endTime;    updateAttendees();    updateDateTime();  };    var args = new Object();  args.startTime = gStartTime;  args.endTime = gEndTime;  args.attendees = window.attendees;  args.organizer = window.organizer;  args.calendar = calendar;  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/2006_temp/2006/9421/c52e7c43eb3ad83686612eca956ebfd2d268f98f/sun-calendar-event-dialog.js/buggy/calendar/prototypes/wcap/sun-calendar-event-dialog.js