From e998e12aa5c07d923d91ff8e3d48867ec66d5b48 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Tue, 2 Jun 2026 19:45:35 +0900 Subject: Fix double JST offset in send-recap date calculation isoDate() already adds JST_MS; calling it with nowJST() (which also adds JST_MS) shifted the date +18h, showing tomorrow's date instead of today's. Co-Authored-By: Claude Sonnet 4.6 --- scripts/send-recap.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/send-recap.ts b/scripts/send-recap.ts index 232ea76..da98b6f 100644 --- a/scripts/send-recap.ts +++ b/scripts/send-recap.ts @@ -237,7 +237,7 @@ function smtpSend( // ---- main --------------------------------------------------------------- async function main() { - const date = isoDate(nowJST()); + const date = isoDate(new Date()); console.log(`[recap] querying events for ${date}`); const events = fetchEvents(date, date); -- cgit v1.2.3