utils: Fix negative timestamp handling. closes: #1954

Everything is in the title :-)