fix: change date instances of single-digit days to double-digit

This commit is contained in:
Sérgio Salgado 2021-11-26 16:13:04 +00:00
parent bb189decae
commit 88ed187176
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ const CustomersList = ({ data, locale, onClick, loading }) => {
header: 'Last active', header: 'Last active',
width: 137, width: 137,
view: it => 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', header: 'Last transaction',

View file

@ -51,7 +51,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
value: value:
!R.isNil(timezone) && !R.isNil(timezone) &&
((customer.lastActive && ((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', header: 'Date',
width: 100, 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)', header: 'Time (h:m:s)',