It doesn't matter when you eat, provided that it fits your daily calorie intake requirements. If you needed to eat 1,500 calories to maintain your weight and ate nothing all day, but then ate 1,500 calories worth of food just before bed, you would still maintain your weight.
Time really is...