fix time for integers < 0