Clean install of Yosemite problem

Hopefully someone can help me. I've tried so many options. I purchased a used MacBook Pro, late 2011 model. The person I purchased it from said he wiped the hard drive, but when I got home, it seems he did that, however his login was still there.

So I did a disk utility, wiped the hard drive which checked out fine, got to the reinstall Yosemite page, but there is no hard drive icon, only the install Yosemite page. When I click continue I get this error, "An error occurred while preparing the installation. Try running this application again."

Images below are in order of error

!http://s30.postimg.org/nqvg41k1d/IMG_6344.jpg

!http://s29.postimg.org/mwvvef5af/IMG_6345.jpg


Just in case anybody else comes across this question, the steps to solve the system time/date issue mentioned above are as follows.

  1. Click on Utilities –> Terminal
  2. When the terminal window opens, type date and hit enter. What you will notice is that the date listed will be wrong. That wrong date is what is causing the reinstall error.
  3. To correct the wrong date –> type date followed by MMDDHHMMYYYY (Month – Date – Hour – Minute – Year)
  4. Exit and begin a new install, the problem should now be solved.

This is a problem that quite a few people have experienced in the past and it seems to come about for a variety of reasons and hence has a variety of solutions, here's a few you should try:

  1. FIRST - try resetting PRAM by restarting your machine and holding command-option-p-r immediately when the machine starts booting up. Keep holding all four keys until the machine restarts again and you hear the start up chime. Quite often this solves the problem straight away and you're good to go.
  2. If resetting PRAM doesn't work, you might want to have another go running disk utility and try verifying the drive which you're trying to install to.
  3. If none of the above work, you might want to try this solution which relates to an error in the system time and date settings.

Finally, if you're still not having any luck, give Apple Care a call and explain that you've just bought a second hand machine. They'll likely help you register the machine in your name as well which is kinda handy and they should be able to work through the problem with you even though the machines out of warranty... they're normally pretty good with this kind of thing.