added time function to js

This commit is contained in:
HB9HIL 2023-11-04 12:45:07 +01:00
parent f3fa563022
commit 2fdcdaa201

View File

@ -85,6 +85,13 @@ ssb
});
});
function updateUTCTime() {
const utcTimeElement = document.getElementById("utc-time");
const now = new Date();
const utcTimeString = now.toISOString().split("T")[1].split(".")[0];
utcTimeElement.textContent = utcTimeString;
}
function handleInput() {
var qsodate = "";
if ($("#qsodate").val()) {
@ -550,6 +557,8 @@ function isWWFF(value) {
$(document).ready(function () {
setInterval(updateUTCTime, 1000);
updateUTCTime();
var tabledata = localStorage.getItem(`user_${user_id}_tabledata`);
var mycall = localStorage.getItem(`user_${user_id}_my-call`);
var operator = localStorage.getItem(`user_${user_id}_operator`);