utils: Fix negative timestamp handling. closes: #1954
Merge remote-tracking branch 'laarmen/fix_1954'