From 6b62d3e653bf4d6ff26d29a6b51acf951593a268 Mon Sep 17 00:00:00 2001 From: C_Q Date: Fri, 21 Sep 2018 11:05:51 +0800 Subject: [PATCH] update file history time (#2392) --- frontend/src/components/history-list-view/history-list-item.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/history-list-view/history-list-item.js b/frontend/src/components/history-list-view/history-list-item.js index 78c54f1273..3a513feb25 100644 --- a/frontend/src/components/history-list-view/history-list-item.js +++ b/frontend/src/components/history-list-view/history-list-item.js @@ -49,8 +49,7 @@ class HistoryListItem extends React.Component { render() { let item = this.props.item; - let offset = moment.parseZone(item.ctime).utcOffset(); - let time = moment(item.ctime).add(offset,'m').format('MMMDo Ah:mm'); + let time = moment.parseZone(item.ctime).format('YYYY-MM-DD HH:mm'); let isHigtlightItem = false; if (this.props.item && this.props.currentItem) { isHigtlightItem = this.props.item.commit_id === this.props.currentItem.commit_id;