diff --git a/lib/inventory_refresh/save_collection/saver/base.rb b/lib/inventory_refresh/save_collection/saver/base.rb index a6395ab6..427263fb 100644 --- a/lib/inventory_refresh/save_collection/saver/base.rb +++ b/lib/inventory_refresh/save_collection/saver/base.rb @@ -269,14 +269,8 @@ def assert_referential_integrity(hash) true end - # @return [Time] A rails friendly time getting config from ActiveRecord::Base.default_timezone (can be :local - # or :utc) def time_now - if ActiveRecord::Base.default_timezone == :utc - Time.now.utc - else - Time.zone.now - end + Time.current end # Enriches data hash with timestamp columns