Authored by 于良

修复消息列表和消息详情时间显示不对问题 review by yewanwan

... ... @@ -56,7 +56,7 @@ export default class Meassage extends Component {
renderItem(item, sectionID, rowID) {
let date = moment(item.get('createTime')).format('YYYY-M-D');
let date = moment(item.get('createTime'), 'X').format('YYYY-M-D');
return (
<TouchableOpacity activeOpacity={0.5} onPress={() => this.props.onPressItem(rowID)}>
<View style={styles.row}>
... ...
... ... @@ -71,7 +71,7 @@ export default class MessageDetailContainer extends Component {
}
render() {
let date = moment(this.detail.get('createTime')).format('YYYY年M月D日');
let date = moment(this.detail.get('createTime'), 'X').format('YYYY年M月D日');
return (
<View style={styles.container}>
<MessageDetail
... ...