implemented fixes of #483

This commit is contained in:
lumapu 2022-12-15 21:32:16 +01:00
parent 67b9170fcf
commit 03080b1d7d
2 changed files with 6 additions and 4 deletions

View file

@ -191,10 +191,9 @@
}
function tick() {
++tickCnt;
if(0 != ts)
document.getElementById("date").innerHTML = (new Date((ts+tickCnt) * 1000)).toLocaleString('de-DE');
if(tickCnt >= 10) {
document.getElementById("date").innerHTML = (new Date((++ts) * 1000)).toLocaleString('de-DE');
if(++tickCnt >= 10) {
tickCnt = 0;
getAjax('/api/index', parse);
}