format duration into HH:MM:SS
Merge branch 'master' into iconnor