We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eada3b commit 933eba8Copy full SHA for 933eba8
1 file changed
plugin/notes/notes.html
@@ -464,9 +464,10 @@ <h4 class="label">Notes</h4>
464
secondsEl = timeEl.querySelector( '.seconds-value' );
465
466
function _displayTime( hrEl, minEl, secEl, time) {
467
- var hours = Math.floor( time / ( 1000 * 60 * 60 ) );
468
- var minutes = Math.floor( ( time / ( 1000 * 60 ) ) % 60 );
469
- var seconds = Math.floor( ( time / 1000 ) % 60 );
+ time = Math.round(time / 1000);
+ var seconds = time % 60;
+ var minutes = ( time / 60 ) % 60 ;
470
+ var hours = time / ( 60 * 60 ) ;
471
hrEl.innerHTML = zeroPadInteger( hours );
472
if (hours == 0) {
473
hrEl.classList.add( 'mute' );
0 commit comments