aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/lazy_load_hooks.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-07-09 13:34:24 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2013-07-09 13:43:56 +0100
commit1b3873730b96035a238dbff7627bd5942e6dc4e7 (patch)
tree72259583e746b6eacf773e2db3e84fc31b710be3 /activesupport/lib/active_support/lazy_load_hooks.rb
parent484253515c0e05760541dc48946361185c9e6904 (diff)
downloadrails-1b3873730b96035a238dbff7627bd5942e6dc4e7.tar.gz
rails-1b3873730b96035a238dbff7627bd5942e6dc4e7.tar.bz2
rails-1b3873730b96035a238dbff7627bd5942e6dc4e7.zip
Retain UTC offset when using Time.at_with_coercion
The standard Ruby behavior for Time.at is to return the same type of time when passing an instance of Time as a single argument. Since the an ActiveSupport::TimeWithZone instance may be a different timezone than the system timezone and DateTime just understands offsets the best we can do is to return an instance of Time with the correct offset. Fixes #11350.
Diffstat (limited to 'activesupport/lib/active_support/lazy_load_hooks.rb')
0 files changed, 0 insertions, 0 deletions