An earthquake of magnitude 4.0 and depth of 4.80 kilometers occurred 11.79 miles from Barstow, CA in San Bernardino County at 04:51 PM.