Skip to content

Commit

Permalink
Use Sunday as the start of the week on report
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Dec 13, 2024
1 parent ea0d476 commit 453fadc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ AS $$
ELSE INTERVAL '6 months'
END
))::DATE
WHEN resolution = 'week' THEN
-- -1 day to start weeks on Sunday
(DATE_TRUNC('week', date) - '1 day'::interval)::date
ELSE DATE_TRUNC(resolution, date)::date
END
$$
Expand Down

0 comments on commit 453fadc

Please sign in to comment.