It is time/ It was time

  1. I think it’s time we went on a diet, he said.
  2. I thought it was time we went on a diet, he said.
    Are these two sentences correct? Please comment.
    Thanks.

Yes, except I would use quotation marks, as these are direct quotes.