This commit is contained in:
zogodo
2019-12-29 20:53:18 +08:00
parent 8cfe3a05f5
commit 058ea03b46
3 changed files with 6 additions and 2 deletions

View File

@@ -503,6 +503,10 @@ function AddTimedTask() {
var idx = document.getElementById("task_skt_idx").value;
var on = document.getElementById("task_on").value;
if (tim == null || tim == "" || tim.length != 10) {
alert("task time invalid!");
return;
}
var prs_time = Math.round(new Date(tim) / 1000);
//prs_time = prs_time + parseInt(sec);
var cmd = prs_time + " " + idx + " " + on;