diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2013-07-09 13:34:24 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2013-07-09 13:43:56 +0100 |
commit | 1b3873730b96035a238dbff7627bd5942e6dc4e7 (patch) | |
tree | 72259583e746b6eacf773e2db3e84fc31b710be3 /activesupport/lib/active_support/builder.rb | |
parent | 484253515c0e05760541dc48946361185c9e6904 (diff) | |
download | rails-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/builder.rb')
0 files changed, 0 insertions, 0 deletions