fix: log transport names files local date

This commit is contained in:
MasterAcnolo
2026-09-27 20:03:25 +02:00
parent e8c499fe23
commit 187e3af559

View File

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