mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#13083 fixed tz time acoustic console
This commit is contained in:
parent
9bd75bdf74
commit
bec0c2e495
@ -1345,7 +1345,7 @@ function check_event_sound(settings) {
|
|||||||
let element_time = $(this)
|
let element_time = $(this)
|
||||||
.children(".li-hidden")
|
.children(".li-hidden")
|
||||||
.val();
|
.val();
|
||||||
let obj_time = new Date(element_time);
|
let obj_time = new Date(element_time * 1000);
|
||||||
let current_dt = new Date();
|
let current_dt = new Date();
|
||||||
let timestamp = current_dt.getTime() - obj_time.getTime();
|
let timestamp = current_dt.getTime() - obj_time.getTime();
|
||||||
timestamp = timestamp / 1000;
|
timestamp = timestamp / 1000;
|
||||||
@ -1427,7 +1427,7 @@ function check_event_sound(settings) {
|
|||||||
li.insertAdjacentHTML(
|
li.insertAdjacentHTML(
|
||||||
"beforeend",
|
"beforeend",
|
||||||
'<input type="hidden" value="' +
|
'<input type="hidden" value="' +
|
||||||
element.event_timestamp +
|
element.utimestamp +
|
||||||
'" class="li-hidden"/>'
|
'" class="li-hidden"/>'
|
||||||
);
|
);
|
||||||
$("#tabs-sound-modal .elements-discovered-alerts ul").prepend(li);
|
$("#tabs-sound-modal .elements-discovered-alerts ul").prepend(li);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user