mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-28 16:08:25 +00:00
update file history time (#2392)
This commit is contained in:
parent
f6c50235a2
commit
6b62d3e653
@ -49,8 +49,7 @@ class HistoryListItem extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
let item = this.props.item;
|
let item = this.props.item;
|
||||||
let offset = moment.parseZone(item.ctime).utcOffset();
|
let time = moment.parseZone(item.ctime).format('YYYY-MM-DD HH:mm');
|
||||||
let time = moment(item.ctime).add(offset,'m').format('MMMDo Ah:mm');
|
|
||||||
let isHigtlightItem = false;
|
let isHigtlightItem = false;
|
||||||
if (this.props.item && this.props.currentItem) {
|
if (this.props.item && this.props.currentItem) {
|
||||||
isHigtlightItem = this.props.item.commit_id === this.props.currentItem.commit_id;
|
isHigtlightItem = this.props.item.commit_id === this.props.currentItem.commit_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user