BA 497 then BA 790 at Heathrow
Barcelona → London → Göteborg
Timetable, London time
08:20BA 497 from Barcelona at the gate
07:50BA 790 to Göteborg leaves the gate
23 h 30 apart on the timetable, overnight
BA 790 leaves 23 h 30 after BA 497 arrives on the timetable: more than half a day, so not a connection we count.