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`);