Skip to content

Commit 137c66a

Browse files
committed
wip: black
1 parent 53a1e49 commit 137c66a

File tree

1 file changed

+1
-1
lines changed
  • packages/console/core/src/util

1 file changed

+1
-1
lines changed

packages/console/core/src/util/date.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function getWeekBounds(date: Date) {
22
const dayOfWeek = date.getUTCDay()
33
const start = new Date(date)
4-
start.setUTCDate(date.getUTCDate() - dayOfWeek)
4+
start.setUTCDate(date.getUTCDate() - dayOfWeek + 1)
55
start.setUTCHours(0, 0, 0, 0)
66
const end = new Date(start)
77
end.setUTCDate(start.getUTCDate() + 7)

0 commit comments

Comments
 (0)