BA 1461 then BA 922 at Heathrow
Edinburgh → London → Hannover
Timetable, London time
08:00BA 1461 from Edinburgh at the gate
07:50BA 922 to Hannover leaves the gate
23 h 50 apart on the timetable, overnight
BA 922 leaves 23 h 50 after BA 1461 arrives on the timetable: more than half a day, so not a connection we count.