Fixed issue #1176 - Generation of weekly report fails with internal server error.
This commit is contained in:
parent
1eaf46f466
commit
44e41dcf10
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class ReportsController < ApplicationController
|
||||||
stop = "#{date}T23:59:59Z"
|
stop = "#{date}T23:59:59Z"
|
||||||
range = 'hour'
|
range = 'hour'
|
||||||
elsif params[:timeRange] == 'week'
|
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
|
stop = Date.parse(start).end_of_week.iso8601
|
||||||
range = 'week'
|
range = 'week'
|
||||||
elsif params[:timeRange] == 'month'
|
elsif params[:timeRange] == 'month'
|
||||||
|
|
Loading…
Reference in a new issue