FR 1977 then FR 5772 at Dublin
Riga → Dublin → Glasgow
Timetable, Dublin time
23:10FR 1977 from Riga at the gate
12:35FR 5772 to Glasgow leaves the gate
13 h 25 apart on the timetable, overnight
FR 5772 leaves 13 h 25 after FR 1977 arrives on the timetable: more than half a day, so not a connection we count.