- fix datetime in transaction history

This commit is contained in:
Fadli
2023-01-11 11:37:58 +07:00
parent 20bd645413
commit 7b6ab1b460
3 changed files with 9 additions and 1 deletions

View File

@@ -307,7 +307,9 @@ export const DetailUser = 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>
);
},