This EatThis.com post claims that eating late at night does not effect weight gain, but this is false. The posts cites this Alissa Rumsey quote: "It's the extra calories you eat, not the time you eat them, that causes weight gain," but I can't find any proof that she made this claim. The closest statement I found on her website comes from this article, where she says: "Even if it’s late at night, or it’s “only” been X hours since your last meal, or if you think you already ate enough today – you trust your body when it tells you it’s hungry."
https://alissarumsey.com/intuitive-eating-benefits/
There is an important distinction here between Rumsey's claim, that eating when you are hungry is more important than not eating at night, and the claim that eating at night has no impact on weight gain.
This back up by a JCEM study, a trusted academic source which finds that "[Late Dinner] induces nocturnal glucose intolerance, and reduces fatty acid oxidation and mobilization, particularly in earlier sleepers. These effects might promote obesity if they recur chronically."
https://pmc.ncbi.nlm.nih.gov/articles/PMC7337187/
Eating at night can cause weight gain if done constantly, but as Rumsey claimed it is better to do it every once in a while than force yourself to be hungry. This is different than it having no effect at all.