The only effect eating late night has on anyone is if that person is doing strength training as u burn calories in your sleep as your muscles repair themselves. Other then that small factor, eating late night has shyt to do with someone's weight.
Like I said before, generally speaking for the average person late night snaking or eating heavy meals for dinner isn't a good idea because of the fact that most people are consuming way more calories than they need anyway. In a place where the obesity rate is as high as it is this is good general advice
For the person eating healthy, working and keeping an eye on what they're eating and how much they're eating then it doesn't apply to them. The fact is these types of people are in a very small minority
Obviously this doesn't apply to everyone's specific situation but I didn't think that needed to be stated