format millis as seconds for logging