Skip to content

Ruby 2.4 #to_time incompatibility #24617

@jeremy

Description

@jeremy

Ruby 2.4 changes Time#to_time and DateTime#to_time to preserve timezone. This is a good thing, but it breaks Active Support's scheme to harmonize #to_time behavior.

Example build failures:

Ruby changes:

We'll need to update our #to_time to feature-detect the new versions and behave consistently on Ruby 2.3.0 and 2.4.0.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions