From 62e78d2a30e1c0f35d5efbe3b322193501220789 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Tue, 7 Oct 2025 06:43:17 -0500 Subject: [PATCH] refactor(savexml): changes to the date section to look more clean --- lstV2/server/services/notifications/utils/saveXml.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lstV2/server/services/notifications/utils/saveXml.ts b/lstV2/server/services/notifications/utils/saveXml.ts index b630d9c..c111402 100644 --- a/lstV2/server/services/notifications/utils/saveXml.ts +++ b/lstV2/server/services/notifications/utils/saveXml.ts @@ -18,11 +18,11 @@ export const saveXml = (xmlContent: string, nameString: string = "request") => { const now = new Date(); // Format YYYYMMDDHHmm - const timestamp = `${now.getFullYear()}${String( + const timestamp = `${now.getFullYear()}-${String( now.getMonth() + 1 ).padStart(2, "0")}-${String(now.getDate()).padStart(2, "0")}-${String( now.getHours() - ).padStart(2, "0")}-${String(now.getMinutes()).padStart(2, "0")}`; + ).padStart(2, "0")}${String(now.getMinutes()).padStart(2, "0")}`; // Ensure xml folder path is always relative to project root const xmlDir = path.resolve(process.cwd(), "xml");