From 98c38c3716841e223cfb29e16587c060b50db855 Mon Sep 17 00:00:00 2001 From: weeihan Date: Sat, 11 Jul 2026 21:49:43 +0800 Subject: [PATCH] fix: use setUTCDate in getNextRecheckDate to avoid local-timezone off-by-one --- lib/notifications/effectiveness-recheck.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/notifications/effectiveness-recheck.ts b/lib/notifications/effectiveness-recheck.ts index 8f07b1c..20faaf0 100644 --- a/lib/notifications/effectiveness-recheck.ts +++ b/lib/notifications/effectiveness-recheck.ts @@ -14,7 +14,7 @@ export function getNextRecheckDate(verifiedAt: string, currentRound: number): st const days = NEXT_INTERVAL_DAYS[currentRound] if (days === null || days === undefined) return null const base = new Date(verifiedAt) - base.setDate(base.getDate() + days) + base.setUTCDate(base.getUTCDate() + days) return base.toISOString().split('T')[0] }