If the duty-bound person is aware of the earthquake and did not offer the prayer during the time of the earthquake, it is obligatory to make it up based on compulsory precaution.
Al-Kafi is a respected book in the views of Shia scholars, but we cannot guarantee that all the narrations mentioned in it are authenticated, as one should refer to the experts to determine the authenticity of each narration.