A 21-year-old man wanted for probation violations surrendered at a suburban Detroit police station — thoughtfully bringing a dozen doughnuts for officers.

The sweet gesture didn’t help Michael Zaydel. He still was sentenced to 39 days in jail that Tuesday, a day after walking into the Redford Township police department.

Sgt. Duane Gregg says Zaydel had promised to turn himself in if a post on the department’s Facebook page was shared 1,000 times.

 OK, game on! The threshold was easily met.

Gregg says Zaydel was arrested when he appeared with a bag of doughnuts and a bagel. He told TV station WXYZ that “he knew that cops like doughnuts,” and he wanted to apologize to them for any inconvenience he had caused.

As it turned out,  Sgt. Gregg got the bagel (rank hath its privileges). Did other officers eat the doughnuts? The sergeant says: “No comment.”