aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/test/base_test.rb
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2013-07-09 14:04:49 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2013-07-09 14:04:49 +0100
commitccad803bf44fe30602a041ff0ab1cbe985bc3840 (patch)
tree22636c9a0829b7c7f5ec5c65fd7e5ebfe67c8d7b /actionmailer/test/base_test.rb
parentd704c1cb9850bd563b7ad99762e75b9b3cb7aebf (diff)
downloadrails-ccad803bf44fe30602a041ff0ab1cbe985bc3840.tar.gz
rails-ccad803bf44fe30602a041ff0ab1cbe985bc3840.tar.bz2
rails-ccad803bf44fe30602a041ff0ab1cbe985bc3840.zip
Retain offset and fraction 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. It also maintains the correct fractional second value as well. Fixes #11350. Backports: 484253515c0e05760541dc48946361185c9e6904 1b3873730b96035a238dbff7627bd5942e6dc4e7
Diffstat (limited to 'actionmailer/test/base_test.rb')
0 files changed, 0 insertions, 0 deletions