From db567f0bad53e383b6129b13c5076b470fea3ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AF=E7=81=AB=E4=B8=8D=E4=BC=91=E6=97=B6?= Date: Sat, 29 Apr 2023 16:19:28 +0800 Subject: [PATCH] fix: 'end_date must come after start_date' error fix: Pressing the Usage Check Button prompts an error message "end_date must come after start_date" --- app/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/requests.ts b/app/requests.ts index 7e92cc45e..9d0b199b4 100644 --- a/app/requests.ts +++ b/app/requests.ts @@ -102,7 +102,7 @@ export async function requestUsage() { .getDate() .toString() .padStart(2, "0")}`; - const ONE_DAY = 2 * 24 * 60 * 60 * 1000; + const ONE_DAY = 1 * 24 * 60 * 60 * 1000; const now = new Date(Date.now() + ONE_DAY); const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1); const startDate = formatDate(startOfMonth);