An earthquake of magnitude 4.5 and depth of 8.20 kilometers occurred 4.78 miles from Niland, CA in Imperial County at 12:09 AM.