[fix] timezone for payment list (#3165)
This commit is contained in:
parent
00fccf513e
commit
7d0545dae1
2 changed files with 6 additions and 8 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -252,13 +252,11 @@ window.LNbits = {
|
||||||
fiat_currency: data.fiat_currency
|
fiat_currency: data.fiat_currency
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.date = Quasar.date.formatDate(new Date(obj.time), window.dateFormat)
|
obj.date = moment.utc(data.created_at).local().format(window.dateFormat)
|
||||||
obj.dateFrom = moment.utc(obj.date).fromNow()
|
obj.dateFrom = moment.utc(data.created_at).fromNow()
|
||||||
obj.expirydate = Quasar.date.formatDate(
|
|
||||||
new Date(obj.expiry),
|
obj.expirydate = moment.utc(obj.expiry).local().format(window.dateFormat)
|
||||||
window.dateFormat
|
obj.expirydateFrom = moment.utc(obj.expiry).fromNow()
|
||||||
)
|
|
||||||
obj.expirydateFrom = moment.utc(obj.expirydate).fromNow()
|
|
||||||
obj.msat = obj.amount
|
obj.msat = obj.amount
|
||||||
obj.sat = obj.msat / 1000
|
obj.sat = obj.msat / 1000
|
||||||
obj.tag = obj.extra?.tag
|
obj.tag = obj.extra?.tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue