From 556dbb7bb82cd390419321b7274dcde50a87ba8f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 2 Jun 2016 20:59:15 +0200 Subject: [PATCH] Fixed syntax error. --- app/controllers/reports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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