rails/rails — pull request #9390 by chris-baynes (2013-02-23 15:14:41+00:00)
Title: Keep second fraction when DateTime#change is called.

Using ```change``` on a ```DateTime``` having fractional seconds produces unexpected results if compared to the original.

For example:
```ruby
t = DateTime.new(2012, 1, 1, 2, 5, 12.7)
t.change(day: 2) - t # returns: (863993/864000), expected: (1/1)

# also affects higher level functionality like:
(t..t+1.day).count # returns: 1, expected: 2
```

The reason I think this is important is not in the case where a ```DateTime``` is created manually as above, rather when ```DateTime.current``` is used which always contains fractions of a second.