aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes/notes.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/notes/notes.html')
-rw-r--r--plugin/notes/notes.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 2333878..8af43fb 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -213,9 +213,9 @@
now = new Date();
diff = now.getTime() - start.getTime();
- hours = parseInt( diff / ( 1000 * 60 * 60 ) );
- minutes = parseInt( ( diff / ( 1000 * 60 ) ) % 60 );
- seconds = parseInt( ( diff / 1000 ) % 60 );
+ hours = Math.floor( diff / ( 1000 * 60 * 60 ) );
+ minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 );
+ seconds = Math.floor( ( diff / 1000 ) % 60 );
clockEl.innerHTML = now.toLocaleTimeString();
hoursEl.innerHTML = zeroPadInteger( hours );