From 4578a4e746d7a6dc40098d03b35cace7e5f92f34 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 4 Oct 2024 11:12:08 +0300 Subject: [PATCH] fix: date format --- static/js/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 392d3a4..33d20d7 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -9,10 +9,11 @@ const locationPath = [ const mapPayLink = obj => { obj._data = _.clone(obj) - obj.date = Quasar.utils.date.formatDate( + obj.date = Quasar.date.formatDate( new Date(obj.time * 1000), 'YYYY-MM-DD HH:mm' ) + obj.amount = new Intl.NumberFormat(LOCALE).format(obj.amount) obj.print_url = [locationPath, 'print/', obj.id].join('') obj.pay_url = [locationPath, 'link/', obj.id].join('')