refactor: Extend comparison period from 6 months to 1 year

Increase comparison period to 1 year for more comprehensive validation.
Will now compare ~365 daily summaries instead of ~180 days.
This commit is contained in:
Shivam Mishra
2026-02-11 22:47:21 +05:30
parent ab013b9e2b
commit f29f9517d8
@@ -42,10 +42,10 @@ namespace :reporting_events_rollup do
puts "✓ Timezone: #{account.reporting_timezone}"
puts ''
# 3. GENERATE DAILY DATE RANGES FOR PAST 6 MONTHS
# 3. GENERATE DAILY DATE RANGES FOR PAST 1 YEAR
tz = ActiveSupport::TimeZone[account.reporting_timezone]
end_date = Time.current.in_time_zone(tz).to_date
start_date = end_date - 6.months
start_date = end_date - 1.year
# Generate daily ranges
days = []