W6 1785 then DY 1040 at Oslo
Gdansk → Oslo → Krakow
Timetable, Oslo time
17:25W6 1785 from Gdansk at the gate
10:00DY 1040 to Krakow leaves the gate
16 h 35 apart on the timetable, overnight
DY 1040 leaves 16 h 35 after W6 1785 arrives on the timetable: more than half a day, so not a connection we count.