Fixed issue #2089 - timezone issue with report graphs not displaying or displaying $timezone hours out of step.

This commit is contained in:
Martin Edenhofer 2019-03-26 01:46:09 +01:00
parent 50ca3cde9c
commit f5b671729d

View file

@ -85,9 +85,6 @@ returns
elsif params[:interval] == 'day' || params[:interval] == 'week' elsif params[:interval] == 'day' || params[:interval] == 'week'
replace = '\d\d:\d\d:\d\dZ$' replace = '\d\d:\d\d:\d\dZ$'
end end
Rails.logger.error '-----'
Rails.logger.error item
Rails.logger.error params[:range_start].iso8601.sub(/#{replace}/, '')
next if key_as_string.iso8601.sub(/#{replace}/, '') != params[:range_start].iso8601.sub(/#{replace}/, '') next if key_as_string.iso8601.sub(/#{replace}/, '') != params[:range_start].iso8601.sub(/#{replace}/, '')
next if match next if match