Skip to content

Commit

Permalink
fix year date
Browse files Browse the repository at this point in the history
  • Loading branch information
nicollguarnizo committed Oct 23, 2024
1 parent 66639c1 commit 3b581b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/epic-web/src/lib/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function getDateRange(range: string): {start: Date; end: Date} {
end.setUTCMonth(Math.floor(end.getUTCMonth() / 3) * 3, 0)
break
case 'this-year':
start.setUTCMonth(0, 11)
start.setUTCMonth(0, 1)
end.setUTCMonth(11, 31)
break
case 'last-year':
Expand Down

0 comments on commit 3b581b2

Please sign in to comment.