diff --git a/site/radiostasis.js b/site/radiostasis.js index e6efbc5..0a3d764 100644 --- a/site/radiostasis.js +++ b/site/radiostasis.js @@ -256,7 +256,7 @@ var Player = /** @class */ (function () { }; Player.prototype.timeToDisplayString = function (time) { var mins = Math.floor(time / 60); - var secs = Math.round(time - mins * 60); + var secs = Math.floor(time - mins * 60); var secStr = secs < 10 ? "0".concat(secs) : secs.toString(); return "".concat(mins, ":").concat(secStr); }; diff --git a/src/Player.ts b/src/Player.ts index 49fc898..fb18ca0 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -265,7 +265,7 @@ class Player { private timeToDisplayString(time: number): string { const mins = Math.floor(time / 60); - const secs = Math.round(time - mins * 60); + const secs = Math.floor(time - mins * 60); const secStr = secs < 10 ? `0${secs}` : secs.toString(); return `${mins}:${secStr}`; }