feat: change utils.formatDate and utils.formatTimestamp (#3583)

This commit is contained in:
dni ⚡
2025-11-26 18:54:09 +01:00
committed by GitHub
parent 5f1cfc0e37
commit f1f6af0e35
17 changed files with 71 additions and 65 deletions
-6
View File
@@ -77,12 +77,6 @@ window.windowMixin = {
})
}
},
formatDate(date) {
return moment
.utc(date * 1000)
.local()
.fromNow()
},
formatBalance(amount) {
if (LNBITS_DENOMINATION != 'sats') {
return LNbits.utils.formatCurrency(amount / 100, LNBITS_DENOMINATION)