From 09331f6bbcc4d573091e27eba317eb30d27c7ba0 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 4 Oct 2024 11:14:13 +0300 Subject: [PATCH] fix: better date fromat --- static/js/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 33d20d7..52f713e 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -9,10 +9,7 @@ const locationPath = [ const mapPayLink = obj => { obj._data = _.clone(obj) - obj.date = Quasar.date.formatDate( - new Date(obj.time * 1000), - 'YYYY-MM-DD HH:mm' - ) + obj.date = LNbits.utils.formatDate(obj.time) obj.amount = new Intl.NumberFormat(LOCALE).format(obj.amount) obj.print_url = [locationPath, 'print/', obj.id].join('')