From b9367209bef5cb8eb5d3e0d1977c4f0f184df4f5 Mon Sep 17 00:00:00 2001 From: Sascha Leib Date: Wed, 17 Sep 2025 22:29:47 +0200 Subject: [PATCH] Changes to date string --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 4b162af..c957faa 100644 --- a/script.js +++ b/script.js @@ -34,7 +34,7 @@ const BotMon = { _baseDir: null, _lang: 'en', - _today: (new Date()).toISOString().slice(0, 10), + _datestr: (new Date()).toISOString().slice(0, 10), _timeDiff: '', /* internal tools */ @@ -147,7 +147,7 @@ BotMon.live = { // set the title: const tDiff = '(UTC' + (BotMon._timeDiff != '' ? `, ${BotMon._timeDiff}` : '' ) + ')'; - BotMon.live.gui.status.setTitle(`Data for ${tDiff}`); + BotMon.live.gui.status.setTitle(`Data for ${tDiff}`); // init sub-objects: BotMon.t._callInit(this); @@ -1413,7 +1413,7 @@ BotMon.live = { BotMon.live.gui.status.showBusy(`Loading ${typeName} log file …`); // compose the URL from which to load: - const url = BotMon._baseDir + `logs/${BotMon._today}.${type}.txt`; + const url = BotMon._baseDir + `logs/${BotMon._datestr}.${type}.txt`; //console.log("Loading:",url); // fetch the data: