The Trouble is Not in Your Set - S6-E14
Trivia: Marion Ross guest stars as a woman who watches a lot of TV, but believes the characters are real people. In one scene she references the following show by naming people/characters: Oprah, Donahue, The Tonight Show with Johnny Carson, The Cosby Show, Dynasty, M.A.S.H., Dallas, Leave it to Beaver. The last character she names is "The Fonz", from Happy Days, which Ross also starred in as Mrs. Cunningham.
Answer: The jails are overcrowded, so any petty offenders whose case isn't heard by midnight will be let go. The defendant wants the details of his case read (Instead of just the typical summary of the case that Mack gives Harry) because he knows it'll take a while and run out the clock on the midnight deadline, also sparing him the grand jury trial. Dan speed-recites the document quickly enough for Harry to rule on the case and bang his gavel just at the stroke of midnight.
Captain Defenestrator