1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-27 07:28:42 +00:00

update file history time (#2392)

This commit is contained in:
C_Q 2018-09-21 11:05:51 +08:00 committed by Daniel Pan
parent f6c50235a2
commit 6b62d3e653

View File

@ -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;