var queryStart = convertDate(aStartDate); var queryEnd = convertDate(aEndDate); 
var queryStart = ensureDateTime(aStartDate); var queryEnd = ensureDateTime(aEndDate); 
    getOccurrencesBetween: function(aStartDate, aEndDate, aCount) {        if (this.recurrenceInfo) {            return this.recurrenceInfo.getOccurrences(aStartDate, aEndDate, 0, aCount);        }        // We need to convert dates to regular datetime-objects        // here in order to correctly handle allday-events that        // don't match day borders.        function convertDate(date) {          if (date.isDate) {            var newDate = date.clone();            newDate.hour = 0;            newDate.minute = 0;            newDate.second = 0;            newDate.isDate = false;            return newDate;          } else {            return date;          }        }        var start = convertDate(this.startDate);        var end = convertDate(this.endDate);                var queryStart = convertDate(aStartDate);        var queryEnd = convertDate(aEndDate);        var isZeroLength = !start.compare(end);        if ((isZeroLength &&             start.compare(queryStart) >= 0 &&             start.compare(queryEnd) < 0) ||            (!isZeroLength &&             start.compare(queryEnd) < 0 &&             end.compare(queryStart) > 0)) {                      aCount.value = 1;          return ([ this ]);        }        aCount.value = 0;        return null;    },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/5840ed4834ab82bea4f6597247325520ead95056/calEvent.js/buggy/calendar/base/src/calEvent.js