Please sign in to comment.
Retain UTC offset when using Time.at_with_coercion
The standard Ruby behavior for Time.at is to return the same type of time when passing an instance of Time as a single argument. Since the an ActiveSupport::TimeWithZone instance may be a different timezone than the system timezone and DateTime just understands offsets the best we can do is to return an instance of Time with the correct offset. Fixes #11350.
- Loading branch information...
Showing with 47 additions and 3 deletions.