fix: formatDate working with timezone code

This commit is contained in:
Sérgio Salgado 2021-05-25 08:43:58 +01:00 committed by Josh Harvey
parent 0429563e42
commit 78a4c9f267
8 changed files with 17 additions and 25 deletions

View file

@ -47,7 +47,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
!R.isNil(timezone) &&
ifNotNull(
customer.lastActive,
formatDate(customer.lastActive, timezone.dstOffset, 'YYYY-MM-D')
formatDate(customer.lastActive, timezone, 'YYYY-MM-D')
)
},
{
@ -113,12 +113,12 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
{
header: 'Date',
width: 157,
view: it => formatDate(it.created, timezone.dstOffset, 'YYYY-MM-D')
view: it => formatDate(it.created, timezone, 'YYYY-MM-D')
},
{
header: 'Time (h:m:s)',
width: 134,
view: it => formatDate(it.created, timezone.dstOffset, 'HH:mm:ss')
view: it => formatDate(it.created, timezone, 'HH:mm:ss')
}
]