meaning difference

  1. David told me he is going home.
  2. David told me he was going home.
    Are both correct?
    What is the meaning difference between the two sentences?

The usual difference in tenses.