FR 123 then FR 1976 at Dublin
London Gatwick → Dublin → Riga
Timetable, Dublin time
22:55FR 123 from London Gatwick at the gate
16:25FR 1976 to Riga leaves the gate
17 h 30 apart on the timetable, overnight
FR 1976 leaves 17 h 30 after FR 123 arrives on the timetable: more than half a day, so not a connection we count.