From 187e3af5596257cddcef806e4c9aa6260a126b04 Mon Sep 17 00:00:00 2001 From: MasterAcnolo Date: Sun, 27 Sep 2026 20:03:25 +0200 Subject: [PATCH] fix: log transport names files local date --- app/sendReport.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/sendReport.js b/app/sendReport.js index 48b50da..c792cea 100644 --- a/app/sendReport.js +++ b/app/sendReport.js @@ -16,7 +16,12 @@ async function sendReport(params) { if (includeLogs === "yes" && logDir) { // YYYY-MM-DD - const today = new Date().toISOString().split("T")[0]; + const now = new Date(); + const today = [ + now.getFullYear(), + String(now.getMonth() + 1).padStart(2, "0"), + String(now.getDate()).padStart(2, "0") + ].join("-"); const logFilePath = path.join(logDir, `LOGS-${today}.log`);