More important than the time of day you eat, is what you eat and how much you eat. Your total kilojoule intake, plus the physical activity performed over a whole day determines whether you gain, lose, or maintain weight. No matter when you eat, if you take in more kilojoules than you need, your body will store the excess as fat.
A recent review found altering meal frequency, where you eat your whole days food as either one, two or three meals per day, makes almost no difference to body weight.
Some short term studies have found that eating MOST of your kilojoules late in the day could make blood sugar control worse, but longer term trials are needed to check this.
An advantage of closing down the kitchen early is that less total food gets eaten, especially less junk food and less alcohol.