Skip to content

Commit 1a3d6f4

Browse files
committed
Opt-in to new 'to_time' behavior (i.e. preserve receiver timezone)
1 parent 466bc72 commit 1a3d6f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class Application < Rails::Application
1717
Rails.autoloaders.main.ignore(Rails.root.join('app/**/*'))
1818

1919
config.active_support.cache_format_version = 7.0
20+
config.active_support.to_time_preserves_timezone = :zone
2021

2122
config.generators do |g|
2223
g.orm false

0 commit comments

Comments
 (0)