But, I don't like either of these sentences.
I would probably say, "As recently as yesterday, history seemed to support the idea of socialism."
But, if you are locked into one of the two posted sentences, I'd say the first one is correct. The second construction seems like an ill formed question.
Student or Learner