U2 866 then U2 8709 at Gatwick
Glasgow → London → Marrakesh
Timetable, London time
12:30U2 866 from Glasgow at the gate
10:05U2 8709 to Marrakesh leaves the gate
21 h 35 apart on the timetable, overnight
U2 8709 leaves 21 h 35 after U2 866 arrives on the timetable: more than half a day, so not a connection we count.