diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-23 12:48:31 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-04-23 12:48:31 +0100 |
commit | a56b150b6401cc3384d2be2db7530662047966e0 (patch) | |
tree | 7a5f2a5fc1127c3d466bfd9d500a0722827d5243 /activerecord/lib/active_record/explain_registry.rb | |
parent | 756cba02c1c06c1bce899633c7b87099ea4afce7 (diff) | |
download | rails-a56b150b6401cc3384d2be2db7530662047966e0.tar.gz rails-a56b150b6401cc3384d2be2db7530662047966e0.tar.bz2 rails-a56b150b6401cc3384d2be2db7530662047966e0.zip |
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.
Diffstat (limited to 'activerecord/lib/active_record/explain_registry.rb')
0 files changed, 0 insertions, 0 deletions