The close call happened in July 2012 when a coronal mass ejection shot out from the sun as fast as 3000 kilometer per second. Researches have concluded that this storm was one of the strongest in logged solar storm history.
If the storm had happened just one week earlier, earth would have been hit, causing severe technological disturbances
Secondly, within the next day, magnetized plasma from the CME would have struck earth. Power blackouts could have been devastating, making it difficult to even flush the toilet because most urban areas use electric water pumps.
"I have come away from our recent studies more convinced than ever that Earth and its inhabitants were incredibly fortunate that the 2012 eruption happened when it did," Daniel Baker at the University of Colorado.
Howell, Elizabeth. "Huge Solar Storm of 2012 Would Have Sparked Calamity on
Earth." Space.com. N.p., Sept. 2014. Web. 15 Sept. 2014.