rem: if (row.alarm_time) item.alarmTime = newDateTime(row.alarm_time, row.alarm_time_tz); 
add: if (row.alarm_time) {      var alarmTime = newDateTime(row.alarm_time, row.alarm_time_tz); var time; var related = item.ALARM_RELATED_START; if (item instanceof Components.interfaces.calIEvent) { time = newDateTime(row.event_start, row.event_start_tz); } else { if (row.todo_entry) { time = newDateTime(row.todo_entry, row.todo_entry_tz); } else if (row.todo_due) { related = item.ALARM_RELATED_END; time = newDateTime(row.todo_due, row.todo_due_tz); } } if (time) { var duration = alarmTime.subtractDate(time); item.alarmOffset = duration; item.alarmRelated = related; } else { Components.utils.reportError("WARNING! Couldn't do alarm conversion for item:"+ item.title+','+item.id+"!\n"); } }   if (row.alarm_offset != null) { var duration = Components.classes["@mozilla.org/calendar/duration;1"] .createInstance(Components.interfaces.calIDuration); duration.seconds = row.alarm_offset; duration.normalize();  item.alarmOffset = duration; item.alarmRelated = row.alarm_related; if (row.alarm_last_ack) {  item.alarmLastAck = newDateTime(row.alarm_last_ack, "UTC"); } } 
context:     getItemBaseFromRow: function (row, flags, item) {        if (row.time_created)            item.creationDate = newDateTime(row.time_created, "UTC");        if (row.last_modified)            item.lastModifiedTime = newDateTime(row.last_modified, "UTC");        item.calendar = this;        item.id = row.id;        if (row.title)            item.title = row.title;        if (row.priority)            item.priority = row.priority;        if (row.privacy)            item.privacy = row.privacy;        if (row.ical_status)            item.status = row.ical_status;        if (row.alarm_time)            item.alarmTime = newDateTime(row.alarm_time, row.alarm_time_tz);        if (row.recurrence_id)            item.recurrenceId = newDateTime(row.recurrence_id, row.recurrence_id_tz);        if (flags)            flags.value = row.flags;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/24e6bb82600f00466ed33ae7f2c3b625e5f5591c/calStorageCalendar.js/clean/calendar/providers/storage/calStorageCalendar.js