FR 813 then FR 1908 at Dublin
Edinburgh → Dublin → Gdansk
Timetable, Dublin time
16:25FR 813 from Edinburgh at the gate
05:45FR 1908 to Gdansk leaves the gate
13 h 20 apart on the timetable, overnight
FR 1908 leaves 13 h 20 after FR 813 arrives on the timetable: more than half a day, so not a connection we count.