rem: event.startDate.isDate = false; 
context: function createEventWithDialog(calendar, startDate, endDate, summary, event){    const kDefaultTimezone = calendarDefaultTimezone();    var onNewEvent = function(event, calendar, originalEvent) {        doTransaction('add', event, calendar, null, null);    }    if (event) {        openEventDialog(event, calendar, "new", onNewEvent);        return;    }        event = createEvent();    if (!startDate) {        startDate = currentView().selectedDay.clone();        startDate.second = 0;        startDate.normalize();    } else if (startDate.isDate) {        startDate = startDate.clone();        startDate.isDate = false;        event.startDate.isDate = false;        /* set the hour/minute of startDate to "right now"           if the day is the same */        var now = jsDateToDateTime(new Date()).getInTimezone(kDefaultTimezone).clone();        var nowDate = now.clone();        nowDate.isDate = true;        nowDate.normalize();        if (startDate.compare(nowDate) == 0) {            /* they're the same, so set now's seconds to 0,               normalize and change startDate to be now. */            now.second = 0;            now.normalize();            startDate = now;        }    }    event.startDate = startDate.clone();    event.startDate.isDate = false;    if (!endDate) {        endDate = startDate.clone();        endDate.minute += getPrefSafe("calendar.event.defaultlength", 60);        endDate.normalize();    }    event.endDate = endDate.clone();    if (calendar) {        event.calendar = calendar;    } else if ("getSelectedCalendarOrNull" in window) {        // Sunbird specific code        event.calendar = getSelectedCalendarOrNull();    }    if (summary)        event.title = summary;    setDefaultAlarmValues(event);    openEventDialog(event, calendar, "new", onNewEvent);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3c40dad8dceb1ae719d0a2ab881042cf5817e420/calendar-item-editing.js/buggy/calendar/base/content/calendar-item-editing.js