Use the right units in setting the alarm delay.

bug 308832, r=dmose
This commit is contained in:
mvl%exedo.nl 2005-10-20 18:01:02 +00:00
parent e628680727
commit 63b6ca598d

View File

@ -331,7 +331,8 @@ calAlarmService.prototype = {
};
if ((alarmTime.compare(now) >= 0 && alarmTime.compare(this.mRangeEnd) <= 0) || skipCheck) {
var timeout = alarmTime.subtractDate(now).inSeconds;
// delay is in msec, so don't forget to multiply
var timeout = alarmTime.subtractDate(now).inSeconds * 1000;
this.mEvents[aItem.id] = newTimerWithCallback(callbackObj, timeout, false);
dump("adding alarm timeout (" + timeout + ") for " + aItem + " at " + aItem.alarmTime + "\n");
}