Fix various off-by-one errors in statistics time ranges (#40193)

Co-authored-by: Shlee <github@shl.ee>
This commit is contained in:
ClaireandShlee committed 2026-08-21 18:04:11 +02:00
1 parent f1f3dd8720
commit 3ccfbbe195
7 files changed
+12 -6

No files matched your search

@@ -97,7 +97,7 @@ class Admin::Metrics::Measure::BaseMeasure
end
def previous_time_period
((@start_at.to_date - length_of_period)..(@end_at.to_date - length_of_period))
((@start_at.to_date - (length_of_period + 1))..(@end_at.to_date - (length_of_period + 1)))
end
def length_of_period