An earthquake of magnitude 4.2 centered 1 mile northeast of Lafayette shook San Leandro on Thursday, March 1, 2007, at 8:40pm.