- fix datetime in transaction history

This commit is contained in:
Fadli 2023-01-16 11:42:27 +07:00
parent 0459ce7dc5
commit c16156da50

View File

@ -1066,7 +1066,7 @@ export const DetailUser = observer(() => {
<small> <small>
Transaction Date :{" "} Transaction Date :{" "}
{ {
moment(new Date (item.created_at).toISOString().replace('Z', ' ').replace('T', ' ')).format("MM-DD-YYYY HH:mm:ss") } moment(new Date (item.created_at).toISOString().slice(0, -1)).format("MM-DD-YYYY HH:mm:ss") }
</small>{" "} </small>{" "}
<br /> <br />
</p> </p>