rem: var startDate      = getElementValue("start-datetime"); var endDate        = getElementValue("end-datetime"); var dateComparison = compareIgnoringTimeOfDay(endDate, startDate); 
add: var startDate      = getElementValue("start-datetime"); var endDate        = getElementValue("end-datetime"); var dateComparison = compareIgnoringTimeOfDay(endDate, startDate); 
context: function checkSetTimeDate(){   var startDate      = getElementValue("start-datetime");   var endDate        = getElementValue("end-datetime");   var dateComparison = compareIgnoringTimeOfDay(endDate, startDate);   if (dateComparison < 0 || (dateComparison == 0 &&       getElementValue("all-day-event-checkbox", "checked") ) )   {      // end before start, or all day event and end date is not exclusive.      setDateError(true);      setTimeError(false);      return false;   } else if (dateComparison == 0) {      setDateError(false);      // start & end date same, so compare entire time (ms since 1970)      var isBadEndTime = endDate.getTime() < startDate.getTime();      setTimeError(isBadEndTime);      return !isBadEndTime;   } else {      setDateError(false);      setTimeError(false);      return true;   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1060b128e67a3aa28e761e1764e023032780c542/eventDialog.js/clean/calendar/resources/content/eventDialog.js