From 3f79b0c7cca6473bad8143b7ef84a91498a5c5b0 Mon Sep 17 00:00:00 2001 From: Joseph Lyons Date: Wed, 24 May 2023 17:39:02 -0400 Subject: [PATCH] Don't hardcode dates into script --- script/get-changes-since | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/get-changes-since b/script/get-changes-since index df92c2d82e..e88505008c 100755 --- a/script/get-changes-since +++ b/script/get-changes-since @@ -9,8 +9,8 @@ main(); async function main() { // Use form of: YYYY-MM-DD - 2023-01-09 - const startDate = new Date("2023-01-01"); - const today = new Date("2023-01-010") + const startDate = new Date(process.argv[2]); + const today = new Date() console.log(`Changes from ${startDate} to ${today}\n`);