Skip to content

Commit

Permalink
fix: don't show decimal places for seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
0xB10C committed Feb 21, 2024
1 parent d5daa90 commit a74b78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/blocktree.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function ago(timestamp) {
});
const now = new Date()
const utc_seconds = (now.getTime() + now.getTimezoneOffset()*60) / 1000;
const seconds = timestamp - utc_seconds;
const seconds = parseInt(timestamp - utc_seconds);
if (seconds > -90) {
return rtf.format(seconds, "seconds");
}
Expand Down

0 comments on commit a74b78d

Please sign in to comment.