This is an automated email from the ASF dual-hosted git repository. sammichen pushed a commit to branch ozone-0.6.0 in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
commit 2a66d324cdaf87078892c89d8815cff074d8825c Author: HuangTao <[email protected]> AuthorDate: Wed Jul 15 23:24:02 2020 +0800 HDDS-3798. Display more accurate timestamp in recon Web (#1201) (cherry picked from commit da49ca6891cc7a2f6ed44aacf8ec51331ad969f4) --- .../src/components/autoReloadPanel/autoReloadPanel.tsx | 4 ++-- .../webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx | 4 ++-- .../webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/autoReloadPanel/autoReloadPanel.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/autoReloadPanel/autoReloadPanel.tsx index fee9a88..773828d 100644 --- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/autoReloadPanel/autoReloadPanel.tsx +++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/components/autoReloadPanel/autoReloadPanel.tsx @@ -42,9 +42,9 @@ class AutoReloadPanel extends React.Component<IAutoReloadPanelProps> { const lastUpdatedText = lastUpdated === 0 ? 'NA' : ( <Tooltip - placement='bottom' title={moment(lastUpdated).format('lll')} + placement='bottom' title={moment(lastUpdated).format('ll LTS')} > - {moment(lastUpdated).format('LT')} + {moment(lastUpdated).format('LTS')} </Tooltip> ); return ( diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx index 877ebf9..fada1f4 100644 --- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx +++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx @@ -135,7 +135,7 @@ const COLUMNS = [ isVisible: true, sorter: (a: IDatanode, b: IDatanode) => a.lastHeartbeat - b.lastHeartbeat, render: (heartbeat: number) => { - return heartbeat > 0 ? moment(heartbeat).format('lll') : 'NA'; + return heartbeat > 0 ? moment(heartbeat).format('ll LTS') : 'NA'; } }, { @@ -197,7 +197,7 @@ const COLUMNS = [ isVisible: false, sorter: (a: IDatanode, b: IDatanode) => a.setupTime - b.setupTime, render: (uptime: number) => { - return uptime > 0 ? moment(uptime).format('lll') : 'NA'; + return uptime > 0 ? moment(uptime).format('ll LTS') : 'NA'; } } ]; diff --git a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx index 15b6858..b898818 100644 --- a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx +++ b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx @@ -114,7 +114,7 @@ const COLUMNS = [ dataIndex: 'lastLeaderElection', key: 'lastLeaderElection', render: (lastLeaderElection: number) => lastLeaderElection > 0 ? - moment(lastLeaderElection).format('lll') : 'NA', + moment(lastLeaderElection).format('ll LTS') : 'NA', sorter: (a: IPipelineResponse, b: IPipelineResponse) => a.lastLeaderElection - b.lastLeaderElection }, { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
