diff --git a/spec/rails_integration_spec.rb b/spec/rails_integration_spec.rb index a08369f..05ae4a4 100644 --- a/spec/rails_integration_spec.rb +++ b/spec/rails_integration_spec.rb @@ -38,6 +38,9 @@ class FormeRails < Rails::Application if Rails.respond_to?(:version) && Rails.version >= '7.1' && Rails.version < '7.2' config.active_support.cache_format_version = 7.1 end + if Rails.respond_to?(:version) && Rails.version >= '8' + config.active_support.to_time_preserves_timezone = :zone + end begin initialize! rescue NoMethodError