DY 817 then W6 1786 at Oslo
Stockholm → Oslo → Gdansk
Timetable, Oslo time
17:30DY 817 from Stockholm at the gate
12:40W6 1786 to Gdansk leaves the gate
19 h 10 apart on the timetable, overnight
W6 1786 leaves 19 h 10 after DY 817 arrives on the timetable: more than half a day, so not a connection we count.