Files
sure/test/controllers/reports_controller_test.rb
joaocbatista b101708409 Fix Start month on Last 6 Months report off by 1 (#2070)
* Bump version to next iteration after v0.7.1-rc.1.1 release

* fix: correct last_6_months period to show exactly 6 months

Default start date was snapping to beginning_of_month 6 months ago,
producing a 7-month window (e.g. Nov 1 – May 31). Fix computes the
start as (end_of_month + 1 day - 6 months).beginning_of_month so the
default window is consistent with the navigation arrows and Today button.

* improved test

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-05-31 16:35:38 +02:00

13 KiB