FR 5020 then FR 1908 at Dublin
Pisa → Dublin → Gdansk
Timetable, Dublin time
15:40FR 5020 from Pisa at the gate
05:45FR 1908 to Gdansk leaves the gate
14 h 05 apart on the timetable, overnight
FR 1908 leaves 14 h 05 after FR 5020 arrives on the timetable: more than half a day, so not a connection we count.