diff --git a/app/controllers/time_accountings_controller.rb b/app/controllers/time_accountings_controller.rb index e258217a7..3a76e5ac9 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 = Date.parse("#{year}-#{month}-01") + start_periode = Time.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 = Date.parse("#{year}-#{month}-01") + start_periode = Time.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 = Date.parse("#{year}-#{month}-01") + start_periode = Time.parse("#{year}-#{month}-01") end_periode = start_periode.end_of_month time_unit = {}