BA 1487 then BA 105 at Heathrow
Glasgow → London → Dubai
Timetable, London time
20:05BA 1487 from Glasgow at the gate
20:00BA 105 to Dubai leaves the gate
23 h 55 apart on the timetable, overnight
BA 105 leaves 23 h 55 after BA 1487 arrives on the timetable: more than half a day, so not a connection we count.