From 9cf9299824dc0b432e1c966ca5294e58023bd814 Mon Sep 17 00:00:00 2001 From: Fadli Date: Wed, 11 Jan 2023 11:39:27 +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 249788c..62b46e8 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -238,7 +238,7 @@ export const Profile = observer(() => { render: (text, record) => { return ( - {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")} ); },