update AR adapter to reflect timezone setting update

This commit is contained in:
Brian Lopez 2010-08-06 00:01:24 -07:00
parent 99af726a58
commit 2527454b26
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ module ActiveRecord
def execute(sql, name = nil)
# make sure we carry over any changes to ActiveRecord::Base.default_timezone that have been
# made since we established the connection
@connection.query_options[:timezone] = ActiveRecord::Base.default_timezone
@connection.query_options[:database_timezone] = ActiveRecord::Base.default_timezone
if name == :skip_logging
@connection.query(sql)
else