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