U2 8070 then U2 871 at Gatwick
Málaga → London → Glasgow
Timetable, London time
13:25U2 8070 from Málaga at the gate
07:05U2 871 to Glasgow leaves the gate
17 h 40 apart on the timetable, overnight
U2 871 leaves 17 h 40 after U2 8070 arrives on the timetable: more than half a day, so not a connection we count.