U2 8070 then BA 2820 at Gatwick
Málaga → London → Rabat
Timetable, London time
13:35U2 8070 from Málaga at the gate
12:45BA 2820 to Rabat leaves the gate
23 h 10 apart on the timetable, overnight
BA 2820 leaves 23 h 10 after U2 8070 arrives on the timetable: more than half a day, so not a connection we count.