Revert "Fixes trimming when using end times"

This reverts commit 8f0989cf1770446bd6095d2684225994e27dd25d.