From 16e79bbf88f47c2dd80eb66ae414fa38df373f6b Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Tue, 5 Sep 2017 21:24:43 +0200 Subject: [PATCH] Fixed issue #1315 - Time Accounting not showing all tickets, time is missing completly of specific ticket. --- app/controllers/time_accountings_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/time_accountings_controller.rb b/app/controllers/time_accountings_controller.rb index 3a76e5ac9..e393b1c51 100644 --- a/app/controllers/time_accountings_controller.rb +++ b/app/controllers/time_accountings_controller.rb @@ -8,7 +8,7 @@ class TimeAccountingsController < ApplicationController year = params[:year] || Time.zone.now.year month = params[:month] || Time.zone.now.month - start_periode = Time.parse("#{year}-#{month}-01") + start_periode = Time.zone.parse("#{year}-#{month}-01") end_periode = start_periode.end_of_month time_unit = {} @@ -217,7 +217,7 @@ class TimeAccountingsController < ApplicationController year = params[:year] || Time.zone.now.year month = params[:month] || Time.zone.now.month - start_periode = Time.parse("#{year}-#{month}-01") + start_periode = Time.zone.parse("#{year}-#{month}-01") end_periode = start_periode.end_of_month time_unit = {} @@ -297,7 +297,7 @@ class TimeAccountingsController < ApplicationController year = params[:year] || Time.zone.now.year month = params[:month] || Time.zone.now.month - start_periode = Time.parse("#{year}-#{month}-01") + start_periode = Time.zone.parse("#{year}-#{month}-01") end_periode = start_periode.end_of_month time_unit = {}