From 88ed1871764612dffa02ed1e828ff15a53583675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Fri, 26 Nov 2021 16:13:04 +0000 Subject: [PATCH] fix: change date instances of single-digit days to double-digit --- new-lamassu-admin/src/pages/Customers/CustomersList.js | 2 +- .../src/pages/Customers/components/TransactionsList.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/new-lamassu-admin/src/pages/Customers/CustomersList.js b/new-lamassu-admin/src/pages/Customers/CustomersList.js index 2fdaadc9..43e40c2a 100644 --- a/new-lamassu-admin/src/pages/Customers/CustomersList.js +++ b/new-lamassu-admin/src/pages/Customers/CustomersList.js @@ -44,7 +44,7 @@ const CustomersList = ({ data, locale, onClick, loading }) => { header: 'Last active', width: 137, view: it => - (it.lastActive && format('yyyy-MM-d', new Date(it.lastActive))) ?? '' + (it.lastActive && format('yyyy-MM-dd', new Date(it.lastActive))) ?? '' }, { header: 'Last transaction', diff --git a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js index a3c16f06..9bbd35de 100644 --- a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js +++ b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js @@ -51,7 +51,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => { value: !R.isNil(timezone) && ((customer.lastActive && - formatDate(customer.lastActive, timezone, 'yyyy-MM-d')) ?? + formatDate(customer.lastActive, timezone, 'yyyy-MM-dd')) ?? '') }, { @@ -121,7 +121,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => { { header: 'Date', width: 100, - view: it => formatDate(it.created, timezone, 'yyyy-MM-d') + view: it => formatDate(it.created, timezone, 'yyyy-MM-dd') }, { header: 'Time (h:m:s)',