mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 08:22:20 +02:00
fix(dashboard): anchor monthly cost window to UTC
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
789bf00275
commit
bcd3fcd3fc
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user