FR 2508 then W6 1706 at Barcelona
Cologne → Barcelona → Gdansk
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
20:20W6 1706 to Gdansk leaves the gate
22 h 35 apart on the timetable, overnight
W6 1706 leaves 22 h 35 after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.