1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

[file 'history versions'] modified the time format

This commit is contained in:
llj
2022-04-12 17:56:29 +08:00
parent eee78d381e
commit 581690d1a2

View File

@@ -52,8 +52,8 @@ class HistoryItem extends React.Component {
<Fragment> <Fragment>
<tr onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave} className={this.state.active ? 'tr-highlight' : ''}> <tr onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave} className={this.state.active ? 'tr-highlight' : ''}>
<td> <td>
<time datetime={item.time} is="relative-time" title={moment(item.ctime).format('llll')}>{moment(item.ctime).fromNow()}</time> <span>{moment(item.ctime).format('YYYY-MM-DD HH:mm:ss')}</span>
{this.props.index === 0 && gettext('(current version)')} {this.props.index === 0 && <span className="ml-1">{gettext('(current version)')}</span>}
</td> </td>
<td> <td>
<img className="avatar" src={item.creator_avatar_url} alt=''></img>{' '} <img className="avatar" src={item.creator_avatar_url} alt=''></img>{' '}