Skip to content

Commit

Permalink
Merge branch 'main' into fix-gocrane#742
Browse files Browse the repository at this point in the history
merge with origin main
  • Loading branch information
qingtiantongxie committed May 11, 2023
2 parents cc9bc3c + 9aaeb2a commit 3e5b054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/web/src/utils/rangeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
};

0 comments on commit 3e5b054

Please sign in to comment.