mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-27 20:11:15 +02:00
fix: log transport names files local date
This commit is contained in:
@@ -16,7 +16,12 @@ async function sendReport(params) {
|
|||||||
|
|
||||||
if (includeLogs === "yes" && logDir) {
|
if (includeLogs === "yes" && logDir) {
|
||||||
// YYYY-MM-DD
|
// 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`);
|
const logFilePath = path.join(logDir, `LOGS-${today}.log`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user