U2 8822 then U2 867 at Gatwick
Krakow → London → Glasgow
Timetable, London time
22:45U2 8822 from Krakow at the gate
16:45U2 867 to Glasgow leaves the gate
18 h apart on the timetable, overnight
U2 867 leaves 18 h after U2 8822 arrives on the timetable: more than half a day, so not a connection we count.