Fix adjust event end time on contrib shifting

This patch avoids the regression introduced by commit 68863de