forked from extern/egroupware
fix date arithmetic date.getTime() is milisecs not secs
This commit is contained in:
parent
868e5e0a38
commit
75feb92950
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user