A man said he didn't turn up for his trial because he put the wrong date in his phone.
Alan Roberts, of Lydgate Close in New Mill, had denied a charge of assault and his case was set down for trial.
The complainant failed to show up for this on May 18 and, while the matter against him was dismissed, magistrates ordered his arrest.
The 39-year-old appeared at Kirklees Magistrates’ Court yesterday in custody and pleaded guilty to missing court.
His excuse was that he put the wrong date in his phone and thought that his trial was on June 18.
Magistrates were told that Roberts had been in custody since Saturday evening.
Magistrates told him that the day he had spent in custody would serve as his punishment.