An earthquake of magnitude 1.7 and depth of 7.80 kilometers occurred 2.97 miles from Barstow, CA in San Bernardino County at 09:06 PM.