diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js index ed69db96eff..8850e84394a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js @@ -51,10 +51,10 @@ const columns = [ }, { title: 'Last Updated', - dataIndex: 'enrolmentInfo', - key: 'dateOfLastUpdate', + dataIndex: 'deviceInfo', + key: 'updatedTime', render: (data) => { - return (getTimeAgo(data.dateOfLastUpdate)); + return data.updatedTime; } // todo add filtering options }, @@ -96,12 +96,6 @@ const columns = [ }, ]; -const getTimeAgo = (time) => { - const timeAgo = new TimeAgo('en-US'); - return timeAgo.format(time); -}; - - class DeviceInstall extends React.Component { constructor(props) { super(props); diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js index fa449ccd37f..a8533ef6637 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceUninstall.js @@ -51,10 +51,10 @@ const columns = [ }, { title: 'Last Updated', - dataIndex: 'enrolmentInfo', - key: 'dateOfLastUpdate', + dataIndex: 'deviceInfo', + key: 'updatedTime', render: (data) => { - return (getTimeAgo(data.dateOfLastUpdate)); + return data.updatedTime; } // todo add filtering options }, @@ -96,11 +96,6 @@ const columns = [ }, ]; -const getTimeAgo = (time) => { - const timeAgo = new TimeAgo('en-US'); - return timeAgo.format(time); -}; - class DeviceUninstall extends React.Component { constructor(props) { super(props);