mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-23 19:31:53 +02:00
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)
|
if (startDate)
|
||||||
{
|
{
|
||||||
var date = new Date(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);
|
alarm_date.set_value(date);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user