U2 8004 then U2 867 at Gatwick
Almeria → London → Glasgow
Timetable, London time
15:15U2 8004 from Almeria at the gate
14:10U2 867 to Glasgow leaves the gate
22 h 55 apart on the timetable, overnight
U2 867 leaves 22 h 55 after U2 8004 arrives on the timetable: more than half a day, so not a connection we count.