add:  var isAllDay = getElementValue("event-all-day", "checked"); if(isAllDay) gStartTime.isDate = true; 
context: function updateStartTime(){  if(gIgnoreUpdate)    return;  var startWidgetId;  var endWidgetId;  if (isEvent(window.calendarItem)) {    startWidgetId = "event-starttime";    endWidgetId = "event-endtime";  } else {    if (!getElementValue("todo-has-entrydate", "checked"))      gItemDuration = null;    if (!getElementValue("todo-has-duedate", "checked"))      gItemDuration = null;    startWidgetId = "todo-entrydate";    endWidgetId = "todo-duedate";  }    // jsDate is always in OS timezone, thus we create a calIDateTime  // object from the jsDate representation and simply set the new  // timezone instead of converting.  var kDefaultTimezone = calendarDefaultTimezone();  var start = jsDateToDateTime(getElementValue(startWidgetId));  start = start.getInTimezone(kDefaultTimezone);  var menuItem = document.getElementById('menu-options-timezone');  if(menuItem.getAttribute('checked') == 'true') {    start.timezone = gStartTimezone;  }  gStartTime = start.clone();  if(gItemDuration) {    start.addDuration(gItemDuration);    start = start.getInTimezone(gEndTimezone);  }  if(gEndTime) {    var menuItem = document.getElementById('menu-options-timezone');    if(menuItem.getAttribute('checked') == 'true') {      start.timezone = gEndTimezone    }    gEndTime = start;  }    updateDateTime();  updateTimezone();}
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