[fix] timezone for payment list (#3165)

This commit is contained in:
Vlad Stan 2025-05-20 11:51:32 +03:00 committed by GitHub
parent 00fccf513e
commit 7d0545dae1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -252,13 +252,11 @@ window.LNbits = {
fiat_currency: data.fiat_currency
}
obj.date = Quasar.date.formatDate(new Date(obj.time), window.dateFormat)
obj.dateFrom = moment.utc(obj.date).fromNow()
obj.expirydate = Quasar.date.formatDate(
new Date(obj.expiry),
window.dateFormat
)
obj.expirydateFrom = moment.utc(obj.expirydate).fromNow()
obj.date = moment.utc(data.created_at).local().format(window.dateFormat)
obj.dateFrom = moment.utc(data.created_at).fromNow()
obj.expirydate = moment.utc(obj.expiry).local().format(window.dateFormat)
obj.expirydateFrom = moment.utc(obj.expiry).fromNow()
obj.msat = obj.amount
obj.sat = obj.msat / 1000
obj.tag = obj.extra?.tag