summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-02 19:45:35 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-06-02 19:45:35 +0900
commite998e12aa5c07d923d91ff8e3d48867ec66d5b48 (patch)
tree18137267d359f7979802585852e47d9e0398dd38
parentd99e57c263c63b77f4d297261450e62325957c68 (diff)
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 <noreply@anthropic.com>
-rw-r--r--scripts/send-recap.ts2
1 files changed, 1 insertions, 1 deletions
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);