aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorAlexey Shein <alexey.shein.dev@gmail.com>2016-04-21 03:53:48 +0500
committerJeremy Daer <jeremydaer@gmail.com>2016-04-25 20:55:33 -0500
commit420730b10b46be7e40d806007bb28d3b17c7519f (patch)
tree66503d58e8084581f27494c9a536960276effc4f /actionmailer/lib
parentea628f72c3f6ef77752794356fcb358858fd8827 (diff)
downloadrails-420730b10b46be7e40d806007bb28d3b17c7519f.tar.gz
rails-420730b10b46be7e40d806007bb28d3b17c7519f.tar.bz2
rails-420730b10b46be7e40d806007bb28d3b17c7519f.zip
Do not cache ActiveSupport::TimeZone#utc_offset
This can be an issue when TZInfo::TimeZone#current_period is refreshed due to timezone period transition, but it's not reflected in ActiveSupport::TimeZone object. For example, on Sun, 26 Oct 2014 22:00 UTC, Moscow changed its TZ from MSK +04:00 to MSK +03:00 (-1 hour). If ActiveSupport::TimeZone['Moscow'] happens to be initialized just before the timezone transition, it will cache its stale utc_offset even after the timezone transition. This commit removes cache and fixes this issue. Signed-off-by: Jeremy Daer <jeremydaer@gmail.com>
Diffstat (limited to 'actionmailer/lib')
0 files changed, 0 insertions, 0 deletions