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:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user