seconds value needs rounding because of javascript "precision" operations.