4ac5ee9350
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 ``` |
||
---|---|---|
.. | ||
active_support | ||
active_support.rb |