fix date arithmetic date.getTime() is milisecs not secs

This commit is contained in:
Ralf Becker 2014-08-21 13:31:10 +00:00
parent 868e5e0a38
commit 75feb92950

View File

@ -1260,7 +1260,7 @@ app.classes.calendar = AppJS.extend(
if (startDate)
{
var date = new Date(startDate);
date.setTime(date.getTime() - parseInt(alarm_options.get_value()));
date.setTime(date.getTime() - 1000 * parseInt(alarm_options.get_value()));
alarm_date.set_value(date);
}
}