When the reporting verb is in the past (dijo, comentó, preguntó), tenses usually move one step back: present → imperfect, pretérito or present perfect → pluperfect, future → conditional. So «Vendré a las seis» becomes Dijo que vendría a las seis.
Orders, requests, and advice in the past take the imperfect subjunctive, not the present: «Ven a la reunión» → Me dijo que fuera a la reunión. «No abras la puerta» → Me dijo que no abriera la puerta. The same happens with past influence verbs: Me pidió que firmara; Nos aconsejó que no saliéramos.
A completed action before the original words can appear as the pluperfect: «Ya vine» → Dijo que ya había venido (or, after a negative, No me dijo que hubiera / había venido). Both hubiera and había are heard after no me dijo que; hubiera often underlines that the information was missing.
The usual mistakes are keeping the present subjunctive after a past verb (*Me dijo que vaya) and leaving the future unchanged (*Dijo que vendrá) when the report is clearly in the past.