diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 9dbf0d2a8..659abcdd1 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -160,7 +160,7 @@ class ReportsController < ApplicationController range = 'day' else start = "#{params[:year]}-01-01" - stop_date = Date.parse(day_start).end_of_month + stop_date = Date.parse(start).end_of_month stop = "#{stop_date.year}-#{stop_date.month}-#{stop_date.day}" range = 'month' end