Skip to content

Commit

Permalink
fix formatting time ago
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Jun 2, 2024
1 parent 851c64d commit e6d982c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@
formatTimeAgo: function(datetimeString) {
const millisecondsAgo = Date.now() - new Date(datetimeString).getTime();
const secondsAgo = Math.round(millisecondsAgo / 1000);
return this.formatSecondsAgo(secondsAgo);
return this.formatSeconds(secondsAgo);
},
formatSecondsAgo: function(seconds) {
const secondsAgo = Math.round((Date.now() / 1000) - seconds);
Expand Down

0 comments on commit e6d982c

Please sign in to comment.