It is a past counterfactual, so it's "as if it had happened yesterday".
Nevertheless, it is quite common for native speakers to substitute the simple past for the past perfect, so you will very frequently hear "as if it happened yesterday", which means exactly the same thing.
CJ