fix: backwards compatibility extension formatDateString (#3594)
This commit is contained in:
Vendored
+1
-1
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)
|
||||
|
||||
Reference in New Issue
Block a user