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) {