mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
fix formatting time ago
This commit is contained in:
parent
851c64d2d5
commit
e6d982c3f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue