Why would you have to mention time dilation? Time dilation is almost irrelevant to the situation that is being described in this question.
Also @ MilkyCat_ are you implying that if the train wasn't travelling near the speed of light then the relativity of simultaneity does not hold true?
You...