U2 862 then BA 2784 at Gatwick
Glasgow → London → Larnaca
Timetable, London time
10:50U2 862 from Glasgow at the gate
08:30BA 2784 to Larnaca leaves the gate
21 h 40 apart on the timetable, overnight
BA 2784 leaves 21 h 40 after U2 862 arrives on the timetable: more than half a day, so not a connection we count.