class RuboCop::Cop::Rails::TimeZone

def method_from_time_class?(node)

called is part of the time class.
Only add the method to the chain if the method being
def method_from_time_class?(node)
  receiver, method_name, *_args = *node
  if (receiver.is_a? RuboCop::AST::Node) && !receiver.cbase_type?
    method_from_time_class?(receiver)
  else
    method_name == :Time
  end
end