Hi, the ‘had...would have’ construction is in the past, as Wahid said. If someone had told me this, in the past, then I would have done...whatever it is. It’s about what has happened up until now, i.e if you had known the facts, then you would have, up until this point, acted differently.
The way the question you quote is phrased makes it a bit unclear, as the question uses the present tense, what the person is doing or not doing now, implying that although they now know they still haven’t changed what they do. In changing this into the conditional with ‘had...would have’, you automatically move this into the past.