- fix datetime in transaction history

This commit is contained in:
Fadli 2023-01-11 11:39:27 +07:00
parent 7b6ab1b460
commit 9cf9299824

View File

@ -238,7 +238,7 @@ export const Profile = observer(() => {
render: (text, record) => {
return (
<Text>
{moment(record.created_at.toLocaleString('en-GB')).format("MM-DD-YYYY HH:mm:ss")}
{moment(new Date (record.created_at).toISOString().replace('Z', ' ').replace('T', ' ')).format("MM-DD-YYYY HH:mm:ss")}
</Text>
);
},