Skip to content

Commit 3ea60f8

Browse files
committed
feat: opt in to Rails 8.1 behavior for timezone preservation during Time conversion
1 parent 19c66f4 commit 3ea60f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/dummy/config/application.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class Application < Rails::Application
2727
# Use the latest cache format and remove deprecated Active Storage setting
2828
config.active_support.cache_format_version = 7.1
2929

30+
# Opt in to Rails 8.1 behavior: preserve timezone when converting to Time
31+
config.active_support.to_time_preserves_timezone = :zone
32+
3033
config.generators do |g|
3134
g.orm :active_record, primary_key_type: :uuid
3235
g.fixture_replacement :factory_bot, dir: 'spec/factories'

0 commit comments

Comments
 (0)