diff options
| author | Frank <[email protected]> | 2026-01-08 19:44:31 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-01-09 01:32:00 -0500 |
| commit | 2e875b2d65259769a8fd273e577715609e990d05 (patch) | |
| tree | bdede43a3e905151ad88fb31e34e74e7933810c6 /packages/console/core/src | |
| parent | 790baec41fb61d169de102a6adc4d7aa41f74391 (diff) | |
| download | opencode-2e875b2d65259769a8fd273e577715609e990d05.tar.gz opencode-2e875b2d65259769a8fd273e577715609e990d05.zip | |
wip: black
Diffstat (limited to 'packages/console/core/src')
| -rw-r--r-- | packages/console/core/src/util/date.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/console/core/src/util/date.ts b/packages/console/core/src/util/date.ts index 72d6b8e19..7f34c9bb5 100644 --- a/packages/console/core/src/util/date.ts +++ b/packages/console/core/src/util/date.ts @@ -1,7 +1,7 @@ export function getWeekBounds(date: Date) { const dayOfWeek = date.getUTCDay() const start = new Date(date) - start.setUTCDate(date.getUTCDate() - dayOfWeek) + start.setUTCDate(date.getUTCDate() - dayOfWeek + 1) start.setUTCHours(0, 0, 0, 0) const end = new Date(start) end.setUTCDate(start.getUTCDate() + 7) |
