EC 8064 then U2 867 at Gatwick
Barcelona → London → Glasgow
Timetable, London time
14:25EC 8064 from Barcelona at the gate
13:55U2 867 to Glasgow leaves the gate
23 h 30 apart on the timetable, overnight
U2 867 leaves 23 h 30 after EC 8064 arrives on the timetable: more than half a day, so not a connection we count.