fix: change date instances of single-digit days to double-digit
This commit is contained in:
parent
bb189decae
commit
88ed187176
2 changed files with 3 additions and 3 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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)',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue