correciton calcul de la durée automatiquement

This commit is contained in:
2020-07-29 11:10:16 +02:00
parent 1fb5c4c715
commit 80b6e4964f

View File

@@ -99,7 +99,7 @@ function formatTime(time) {
return String(hours).pad(2, "0") + ":" + String(minutes).pad(2, "0");
}
$("#timer_start_time,#timer_end_time").change(function(){
$("#timer_start_time,#timer_end_time").on('input',function(){
console.log($("#timer_start_date").val() +"T"+$("#timer_start_time").val()+":00Z")
console.log($("#timer_end_date").val()+"T"+$("#timer_end_time").val()+":00Z")
var start = Date.parse($("#timer_start_date").val() +"T"+$("#timer_start_time").val()+":00Z");