Also "four hours" isn't really an "end of the day" thing... And if they're in temperature control at the end of the day, then four hours is plenty of time to get them distributed and consumed.
Here's an FDA list of TCS (Temperature Controlled for Safety) foods:
https://www.education.ne.gov/wp-content/uploads/2017/07/List...
Note butter, whipped cream, eggs, all part of frosting and fillings for baked goods.
Here's the 4 hour window again:
https://www.statefoodsafety.com/Resources/article/category/R...
You should throw out cakes and cream puffs. You can donate bagels and challah bread.
"If time only, rather than time in conjunction with temperature, is used as the public health control for a working supply of potentially hazardous food before cooking, or for ready-to-eat potentially hazardous food that is displayed or held for service for immediate consumption"
Many baked goods are not considered "potentially hazardous foods". Things filled or frosted fall into a different grouping, but most plain breads (even those including eggs or butter) are shelf stable for days. They suffer a sever drop in culinary quality (ie; stale) but they don't suffer a drop in culinary safety.
Maybe the guy is extremely risk averse, maybe his area has a very zealous food safety department, but it seems like he's not super interested in trying to make this happen (which is fine, he can spend his time doing whatever he want).
https://www.ehso.uic.edu/UserFiles/Servers/Server_82316/File... pg 36
It's in a different state (each has their own code), but it'll do.