Upon a trial for any offense, if a defense witness testifies, there shall be good cause for a reasonable continuance unless the court finds that the prosecutor was or should, with due diligence, have been aware of such evidence. If the continuance is granted because of the defendant’s testimony, it shall not exceed one day.