no, it doesn't put weight on, thats just a fairy tale. It does though lower a little that first GH pulse that comes around 90 minutes after you fall asleep, and can lower overall sleep quality
It doesn't put weight on? Phew, let me go run and eat a cup of white rice and some bread before I pass out.
If you are trying to lose weight, try high protein and complex fruit carbs, i.e. casein shake with a banana.
When you wake up, your insulin levels will be grossly low and you have 45 minutes to workout before needing to eat in order to burn fat and not lose muscle.
If you are trying to gain weight, try something high in protein and good fats, i.e. a cup of nuts and casein shake
Those healthy fats will digest (along with milk or casein) for up to 8 hours, making sure your body doesn't resort to breaking down any muscle.
I wouldn't worry about your GH's from eating late.