An earthquake of magnitude 4.0 and depth of 2.30 kilometers occurred 11.92 miles from Barstow, CA in San Bernardino County at 02:38 AM.