The nutrisionist at the gym said that that it is reccomended to stip consuming food within 2 hours of going to bed. basically because you will not be burning it off like you do during the day (the calories out portion)
It is also reccomended to eat most of your carbs for the day in the morning to fuel you body for optimum calorie burn throughout the day!
Overall, I think everything is about moderation!!!