method
sync_timezone_changes
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::Trilogy::DatabaseStatements
sync_timezone_changes(conn)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/trilogy/database_statements.rb, line 60
def sync_timezone_changes(conn)
# Sync any changes since connection last established.
if default_timezone == :local
conn.query_flags |= ::Trilogy::QUERY_FLAGS_LOCAL_TIMEZONE
else
conn.query_flags &= ~::Trilogy::QUERY_FLAGS_LOCAL_TIMEZONE
end
end