fix: datetime in transaction history mobile device

This commit is contained in:
rahman 2023-01-12 16:02:21 +07:00
parent 8263dcd383
commit 0459ce7dc5
2 changed files with 3 additions and 8 deletions

View File

@ -1065,10 +1065,8 @@ export const DetailUser = observer(() => {
<br /> <br />
<small> <small>
Transaction Date :{" "} Transaction Date :{" "}
{format( {
parseISO(item.created_at), moment(new Date (item.created_at).toISOString().replace('Z', ' ').replace('T', ' ')).format("MM-DD-YYYY HH:mm:ss") }
"dd-MM-yyyy hh:mm:ss"
)}
</small>{" "} </small>{" "}
<br /> <br />
</p> </p>

View File

@ -817,10 +817,7 @@ export const Profile = observer(() => {
<br /> <br />
<small> <small>
Transaction Date :{" "} Transaction Date :{" "}
{format( {moment(new Date (item.created_at).toISOString().replace('Z', ' ').replace('T', ' ')).format("MM-DD-YYYY HH:mm:ss")}
parseISO(item.created_at),
"dd-MM-yyyy"
)}
</small>{" "} </small>{" "}
<br /> <br />
</p> </p>