Timing is crucial. Apologize as soon as you become aware of the mistake. Delaying can exacerbate the situation and result in loss of trust. However, ensure that the apology is well thought out and addresses all aspects of the issue. A rushed apology can seem insincere and do more harm than good.