Skip to content

Commit

Permalink
Merge pull request #2822 from waweic/patch-1
Browse files Browse the repository at this point in the history
Fix jumping time in beets.js
  • Loading branch information
sampsyo authored Feb 26, 2018
2 parents 1254d48 + 00f61e9 commit e938ad3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion beetsplug/web/static/beets.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var timeFormat = function(secs) {
return '0:00';
}
secs = Math.round(secs);
var mins = '' + Math.round(secs / 60);
var mins = '' + Math.floor(secs / 60);
secs = '' + (secs % 60);
if (secs.length < 2) {
secs = '0' + secs;
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Fixes:
* Importing a release with multiple release events now selects the
event based on the order of your :ref:`preferred` countries rather than
the order of release events in MusicBrainz. :bug:`2816`
* :doc:`/plugins/web`: The time display in the web interface would incorrectly jump
at the 30-second mark of every minute. Now, it correctly changes over at zero
seconds. :bug:`2822`

For developers:

Expand Down

0 comments on commit e938ad3

Please sign in to comment.