fix: backwards compatibility extension formatDateString (#3594)
This commit is contained in:
parent
b5f3a46feb
commit
4da651b74a
2 changed files with 5 additions and 1 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
|
|
@ -46,6 +46,10 @@ window._lnbitsUtils = {
|
|||
format = format || window.dateFormat
|
||||
return Quasar.date.formatDate(new Date(timestamp * 1000), format)
|
||||
},
|
||||
// backwards compatibility for extensions
|
||||
formatDateString(isoDateString) {
|
||||
this.formatDate(isoDateString)
|
||||
},
|
||||
formatDate(isoDateString, format = null) {
|
||||
format = format || window.dateFormat
|
||||
return Quasar.date.formatDate(new Date(isoDateString), format)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue