From 5016cd8cb319feba636ba96105318ddb47fd4dad Mon Sep 17 00:00:00 2001 From: imnyang Date: Fri, 9 May 2025 22:59:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=96=B4=EC=A0=9C=EA=B0=80=20=EC=95=84?= =?UTF-8?q?=EB=8B=88=EC=9E=96=EC=95=84!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/index.ts b/app/index.ts index 5653feb..9f41391 100644 --- a/app/index.ts +++ b/app/index.ts @@ -26,15 +26,13 @@ if (args.includes("--today")) { console.log("📅 | --today option detected, using today's date"); YYMMDD = new Date().toISOString().slice(0, 10).replace(/-/g, "").toString(); console.log("📅 | Using today's date:", YYMMDD); -} else { - const yesterday = new Date(); - yesterday.setDate(yesterday.getDate() - 1); - YYMMDD = yesterday.toISOString().slice(0, 10).replace(/-/g, "").toString(); - console.log("📅 | Using yesterday's date:", YYMMDD); } // Tomorrow is 1st of the month const tomorrow = new Date(); tomorrow.setDate(tomorrow.getDate() + 1); +YYMMDD = tomorrow.toISOString().slice(0, 10).replace(/-/g, "").toString(); + +console.log("📅 | date:", YYMMDD); console.log(tomorrow.getDate()); if (tomorrow.getDate() === 1) {