From 4ccab348a52709e1c461cfd5b43fb4c3ff072b0a Mon Sep 17 00:00:00 2001 From: Fadli Date: Mon, 16 Jan 2023 11:48:38 +0700 Subject: [PATCH] - fix datetime in transaction history --- src/pages/Profile/Profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index 57175b2..768df79 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -817,7 +817,7 @@ export const Profile = observer(() => {
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")} {" "}