You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Fix ActiveSupport::TimeWithZone#change example [skip ci]
This Pull Request has been created because the documentation for `ActiveSupport::TimeWithZone#change` wasn't correct.
The behavior of `:hour` and `:min` is different from the example in the documentation.
I checked with Rails 7.1.3.2 and all digits after nano seconds are 0.
```ruby
t = Time.zone.now #=> Sat, 20 Apr 2024 14:55:55.688536000 JST +09:00
t.change(hour: 12) #=> Sat, 20 Apr 2024 12:00:00.000000000 JST +09:00
t.change(min: 30) #=> Sat, 20 Apr 2024 14:30:00.000000000 JST +09:00
```
0 commit comments