Skip to content

Commit

Permalink
fix timeformat in angular example (katspaugh#1448)
Browse files Browse the repository at this point in the history
Change the time format for seconds from ceil to floor so it shows 01:00 instead of 00:00
  • Loading branch information
galexynye authored and thijstriemstra committed Sep 2, 2018
1 parent 926a995 commit 8f8006d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/angular-material/wavesurfer.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
}

var minutes = Math.floor(input / 60);
var seconds = Math.ceil(input) % 60;
var seconds = Math.floor(input) % 60;

return (
(minutes < 10 ? '0' : '') +
Expand Down

0 comments on commit 8f8006d

Please sign in to comment.