The U.S. Geological Survey says a magnitude 7.1 earthquake has shaken parts of Malaysia. The USGS on Sunday said the quake occurred shortly before 5 p.m.