You gain more calories when you eat at night.
It does not matter what time of the day you eat. The only thing that really matters is the number of calories.