rem: if (item.isAllDay) 
add: if (item.startDate.isDate) 
context:     writeEvent: function (item, olditem, flags) {        var ip = this.mInsertEvent.params;        this.setupItemBaseParams(item, olditem,ip);        var tmp;        tmp = item.getUnproxiedProperty("DTSTART");        //if (tmp instanceof kCalIDateTime) {}        this.setDateParamHelper(ip, "event_start", tmp);        tmp = item.getUnproxiedProperty("DTEND");        //if (tmp instanceof kCalIDateTime) {}        this.setDateParamHelper(ip, "event_end", tmp);        if (item.isAllDay)            flags |= CAL_ITEM_FLAG_EVENT_ALLDAY;        ip.flags = flags;        this.mInsertEvent.execute();    },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/80f1651b1ead09e5fba25da40e67a3e33c7fa30e/calStorageCalendar.js/clean/calendar/providers/storage/calStorageCalendar.js