applies documentation guidelines
ActiveRecord -> Active Record
Adjust for daylight savings in String#to_time

The changes in b79adc4323 had a bug where if the time in the String
was in standard time but the current time was in daylight savings then
the calculated adjustment was off by an hour.

This commit fixes this and adds extra tests for the following:

* time in string is standard time, current time is standard time
* time in string is standard time, current time is daylight savings
* time in string is daylight savings, current time is standard time
* time in string is daylight savings, current time is daylight savings

Fixes #10306.
When empty options passed to having clause having_values was [nil] but should be empty.
refactor initialization of array
Merge pull request #10318 from vipulnsward/refactor_obvious

refactor initialization of array
Merge pull request #10317 from arabonradar/ar_having_values_bug_fix

ActiveRecord having clause bug fix