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