1
0
Fork 0

Corrected last tx at in localtime...

main
Kim Huebel 4 years ago
parent 8be2671a4e
commit 9130a71a31

@ -43,7 +43,7 @@ function getTimezone() {
} }
} }
function getLocaltimeFromTimestamp(timestamp) { function getLocaltimeFromTimestamp(timestamp) {
logIt(timestamp); //logIt(timestamp);
if (useClientTimezone) { if (useClientTimezone) {
var localtime = new Date(timestamp.replace(/-/g, "/") + " GMT"); var localtime = new Date(timestamp.replace(/-/g, "/") + " GMT");
return localtime.toLocaleString(); return localtime.toLocaleString();
@ -252,7 +252,7 @@ function getCurrentTXing() {
ts1[4] = Math.round((Date.now() - Date.parse(ts1timestamp.replace(" ","T")+".000Z"))/1000); ts1[4] = Math.round((Date.now() - Date.parse(ts1timestamp.replace(" ","T")+".000Z"))/1000);
t_qso.rows( function ( idx, data, node ) { t_qso.rows( function ( idx, data, node ) {
if(data[0] == ts1[1]){ if(data[0] == ts1[1]){
data[2] = ts1timestamp; data[2] = getLocaltimeFromTimestamp(ts1timestamp);
$('#inQSO').dataTable().fnUpdate(data,idx,undefined,false); $('#inQSO').dataTable().fnUpdate(data,idx,undefined,false);
} }
}).draw(false); }).draw(false);
@ -262,7 +262,7 @@ function getCurrentTXing() {
ts2[4] = Math.round((Date.now() - Date.parse(ts2timestamp.replace(" ","T")+".000Z"))/1000); ts2[4] = Math.round((Date.now() - Date.parse(ts2timestamp.replace(" ","T")+".000Z"))/1000);
t_qso.rows( function ( idx, data, node ) { t_qso.rows( function ( idx, data, node ) {
if(data[0] == ts2[1]){ if(data[0] == ts2[1]){
data[2] = ts2timestamp; data[2] = getLocaltimeFromTimestamp(ts2timestamp);
$('#inQSO').dataTable().fnUpdate(data,idx,undefined,false); $('#inQSO').dataTable().fnUpdate(data,idx,undefined,false);
} }
}).draw(false); }).draw(false);

Loading…
Cancel
Save