utils: fix format time function to add zero padding for durations greater than 1 hour