From 9130a71a31a36cb86d87f93f0c84b479873b41b5 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Sun, 3 Jan 2021 18:46:10 +0000 Subject: [PATCH] Corrected last tx at in localtime... --- html/js/functions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/js/functions.js b/html/js/functions.js index acde7ce..2a47b73 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -43,7 +43,7 @@ function getTimezone() { } } function getLocaltimeFromTimestamp(timestamp) { - logIt(timestamp); + //logIt(timestamp); if (useClientTimezone) { var localtime = new Date(timestamp.replace(/-/g, "/") + " GMT"); return localtime.toLocaleString(); @@ -252,7 +252,7 @@ function getCurrentTXing() { ts1[4] = Math.round((Date.now() - Date.parse(ts1timestamp.replace(" ","T")+".000Z"))/1000); t_qso.rows( function ( idx, data, node ) { if(data[0] == ts1[1]){ - data[2] = ts1timestamp; + data[2] = getLocaltimeFromTimestamp(ts1timestamp); $('#inQSO').dataTable().fnUpdate(data,idx,undefined,false); } }).draw(false); @@ -262,7 +262,7 @@ function getCurrentTXing() { ts2[4] = Math.round((Date.now() - Date.parse(ts2timestamp.replace(" ","T")+".000Z"))/1000); t_qso.rows( function ( idx, data, node ) { if(data[0] == ts2[1]){ - data[2] = ts2timestamp; + data[2] = getLocaltimeFromTimestamp(ts2timestamp); $('#inQSO').dataTable().fnUpdate(data,idx,undefined,false); } }).draw(false);