Skip to content

Enable Rails 8 to_time_preserves_timezone default#12901

Open
albertchae wants to merge 3 commits intomainfrom
rails-8-default-to_time-timezone
Open

Enable Rails 8 to_time_preserves_timezone default#12901
albertchae wants to merge 3 commits intomainfrom
rails-8-default-to_time-timezone

Conversation

@albertchae
Copy link
Contributor

Summary of the problem

Changes to_time methods to preserve the timezone of their receivers instead of converting to UTC offset.

This should be pretty safe as it's more standards compliant behavior.

The first of 3 PRs to flip rails 8 framework defaults one by one
Changes to_time methods to preserve the timezone of their receivers
instead of converting to UTC offset.
@albertchae albertchae requested a review from garyhtou as a code owner February 5, 2026 08:06
# If `false`, `to_time` methods will convert to the local system UTC offset instead.
#++
# Rails.application.config.active_support.to_time_preserves_timezone = :zone
Rails.application.config.active_support.to_time_preserves_timezone = :zone
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base automatically changed from rails-8-default-regex-timeout to main February 5, 2026 20:22
@albertchae albertchae requested a review from a team February 5, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants