BA 1477 then BA 169 at Heathrow
Glasgow → London → Shanghai
Timetable, London time
12:30BA 1477 from Glasgow at the gate
12:25BA 169 to Shanghai leaves the gate
23 h 55 apart on the timetable, overnight
BA 169 leaves 23 h 55 after BA 1477 arrives on the timetable: more than half a day, so not a connection we count.