Fix #1471 - add explicit type cast.
cherry-picked from 9e8f9c1311
timeshift: remove unused/incomplete code.
cherry-picked from f005cbc8b4