#13083 fixed tz time acoustic console

This commit is contained in:
Daniel Cebrian 2024-04-18 16:20:03 +02:00
parent 9bd75bdf74
commit bec0c2e495
1 changed files with 2 additions and 2 deletions

View File

@ -1345,7 +1345,7 @@ function check_event_sound(settings) {
let element_time = $(this)
.children(".li-hidden")
.val();
let obj_time = new Date(element_time);
let obj_time = new Date(element_time * 1000);
let current_dt = new Date();
let timestamp = current_dt.getTime() - obj_time.getTime();
timestamp = timestamp / 1000;
@ -1427,7 +1427,7 @@ function check_event_sound(settings) {
li.insertAdjacentHTML(
"beforeend",
'<input type="hidden" value="' +
element.event_timestamp +
element.utimestamp +
'" class="li-hidden"/>'
);
$("#tabs-sound-modal .elements-discovered-alerts ul").prepend(li);