fix(dashboard): anchor monthly cost window to UTC

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-20 10:00:15 -05:00
1 parent 789bf00275
commit bcd3fcd3fc
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ export function dashboardService(db: Db) {
}
const now = new Date();
const monthStart = new Date(now.getFullYear(), now.getMonth(), 1);
const monthStart = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 1));
const runActivityDays = getRecentUtcDateKeys(now, DASHBOARD_RUN_ACTIVITY_DAYS);
const runActivityStart = new Date(`${runActivityDays[0]}T00:00:00.000Z`);
const [{ monthSpend }] = await db