rem: alarmWidget.setAttribute("time", event.alarmTime.toString()); 
add: var time = event.startDate || event.entryDate || event.dueDate; alarmWidget.setAttribute("time", time.toString()); 
context: function addAlarm(event){  var alarmList = document.getElementById("alarmlist");  var alarmWidget = document.createElement("calendar-alarm-widget");  alarmWidget.setAttribute("title", event.title);  alarmWidget.setAttribute("time", event.alarmTime.toString());  alarmWidget.setAttribute("location", event.getProperty("LOCATION"));  alarmWidget.addEventListener("snooze", onSnoozeAlarm, false);  alarmWidget.addEventListener("dismiss", onDismissAlarm, false);  alarmWidget.item = event;  alarmList.appendChild(alarmWidget);   var prefService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);   var calendarPrefs = prefService.getBranch("calendar.");   var playSound = calendarPrefs.getBoolPref("alarms.playsound");   if (playSound) {     try {       var soundURL = makeURL(calendarPrefs.getCharPref("alarms.soundURL"));       var sound = Components.classes["@mozilla.org/sound;1"].createInstance(Components.interfaces.nsISound);       sound.init();       sound.play(soundURL);     } catch (ex) {       dump("unable to play sound...\n" + ex + "\n");     }   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/24e6bb82600f00466ed33ae7f2c3b625e5f5591c/calendar-alarm-dialog.js/clean/calendar/base/content/calendar-alarm-dialog.js