Skip to content

Commit

Permalink
fix #413
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaschampagne committed Jul 20, 2017
1 parent 91e8e7c commit 0c7b9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/core/scripts/Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Helper {

public static secondsToHHMMSS(secondsParam: number, trimLeadingZeros?: boolean): string {

let secNum: number = secondsParam; // don't forget the second param
let secNum: number = Math.round(secondsParam); // don't forget the second param
let hours: number = Math.floor(secNum / 3600);
let minutes: number = Math.floor((secNum - (hours * 3600)) / 60);
let seconds: number = secNum - (hours * 3600) - (minutes * 60);
Expand Down

0 comments on commit 0c7b9c7

Please sign in to comment.