W6 2047 then W6 1706 at Barcelona
Krakow → Barcelona → Gdansk
Timetable, Barcelona time
08:15W6 2047 from Krakow at the gate
20:20W6 1706 to Gdansk leaves the gate
12 h 05 apart on the timetable
W6 1706 leaves 12 h 05 after W6 2047 arrives on the timetable: more than half a day, so not a connection we count.