From a19c374ac23f571aa14e419876c098d58df7e71c Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 12 Feb 2023 21:45:41 +0000 Subject: [PATCH] Fix script loading on stat.html --- js/stat.js | 2 +- stat.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/stat.js b/js/stat.js index 6ba4756..ff55342 100644 --- a/js/stat.js +++ b/js/stat.js @@ -14,7 +14,7 @@ async function display(data) { document.getElementById('server_host').textContent = `HOST: ${data.host}`; let dat = data.dat[0] console.log(JSON.stringify(dat)) - document.getElementById('time').textContent = convertUnixLocal(dat.since); + document.getElementById('time').textContent = await convertUnixLocal(dat.since); document.getElementById('ldbws').textContent = dat.ldbws || "0"; document.getElementById('ldbsvws').textContent = dat.ldbsvws || "0"; document.getElementById('corpus').textContent = dat.corpus || "0"; diff --git a/stat.html b/stat.html index 10a262b..8a6cf56 100644 --- a/stat.html +++ b/stat.html @@ -2,7 +2,8 @@ OwlBoard - STATS - + +

OwlBoard Server Stats