diff --git a/pkg/web/src/utils/rangeMap.ts b/pkg/web/src/utils/rangeMap.ts index b65f03f9e..fd9ad0d14 100644 --- a/pkg/web/src/utils/rangeMap.ts +++ b/pkg/web/src/utils/rangeMap.ts @@ -3,7 +3,7 @@ import dayjs from 'dayjs'; import { QueryWindow } from '../models'; export const rangeMap = { - [QueryWindow.LAST_1_DAY]: [dayjs().startOf('day'), dayjs()], + [QueryWindow.LAST_1_DAY]: [dayjs(+dayjs() - 3600 * 24 * 1000), dayjs()], [QueryWindow.LAST_7_DAY]: [dayjs().subtract(7, 'd').startOf('day'), dayjs()], [QueryWindow.LAST_30_DAY]: [dayjs().subtract(30, 'd').startOf('day'), dayjs()], };