The science of weight loss and weight gain is much simpler than most people realise. If you take in more energy than you expend, it will result in weight gain and in contrast, if you intake less energy than you expend, you lose weight.
This means that you can eat your meals at any time of the day and it wouldn't make you gain weight if you stayed within your calorie allowance.
So what is the point of nutrient timing if it doesn't matter?
Because although it doesn't matter what time you eat your food for weight loss, eating certain macros at specific times can help you body absorb some of the nutrients better.
For example, after a training session, our bodies are insulin sensitive, meaning that if we ate fast releasing carbs, it will be likely be used up by the body and not hang around and thus turn into fats.