Skip to content

Commit

Permalink
Fixed issue #1176 - Generation of weekly report fails with internal s…
Browse files Browse the repository at this point in the history
…erver error.
  • Loading branch information
thorsteneckel committed Jun 9, 2017
1 parent d51a150 commit 40017ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/reports_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def params_all
stop = "#{date}T23:59:59Z"
range = 'hour'
elsif params[:timeRange] == 'week'
start = Date.commercial(params[:year], params[:week]).iso8601
start = Date.commercial(params[:year].to_i, params[:week].to_i).iso8601
stop = Date.parse(start).end_of_week.iso8601
range = 'week'
elsif params[:timeRange] == 'month'
Expand Down

0 comments on commit 40017ca

Please sign in to comment.