From d21b54c41e8c6ae43766fd85bc27a60080b63ebe Mon Sep 17 00:00:00 2001 From: Christophe Bliard Date: Mon, 23 Jan 2023 11:37:44 +0100 Subject: [PATCH] Set ActiveSupport.to_time_preserves_timezone = true --- config/initializers/new_framework_defaults_5_0.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/new_framework_defaults_5_0.rb b/config/initializers/new_framework_defaults_5_0.rb index 966c630852..c3122a8e6a 100644 --- a/config/initializers/new_framework_defaults_5_0.rb +++ b/config/initializers/new_framework_defaults_5_0.rb @@ -22,7 +22,7 @@ # https://guides.rubyonrails.org/configuring.html#activesupport-to-time-preserves-timezone # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. # Previous versions had false. Rails 5.0+ default is true. -# ActiveSupport.to_time_preserves_timezone = true +ActiveSupport.to_time_preserves_timezone = true # https://guides.rubyonrails.org/configuring.html#config-active-record-belongs-to-required-by-default # Require `belongs_to` associations by default. Previous versions had false.