|
|
|
@ -48,7 +48,7 @@ class HomeworkModal extends Component{
|
|
|
|
|
if(this.props.starttimes!=undefined&&this.props.starttimes!=""){
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
endtime:moment(moment(handleDateString(this.props.starttimes)).add(1, 'months')).format("YYYY-MM-DD HH:mm")
|
|
|
|
|
endtime:moment(moment(handleDateString(this.props.starttimes)).add(1, 'week')).format("YYYY-MM-DD HH:mm")
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -70,7 +70,7 @@ class HomeworkModal extends Component{
|
|
|
|
|
|
|
|
|
|
if(this.props.starttimes!=undefined&&this.props.starttimes!=""){
|
|
|
|
|
this.setState({
|
|
|
|
|
endtime:moment(moment(handleDateString(this.props.starttimes)).add(1, 'months')).format("YYYY-MM-DD HH:mm")
|
|
|
|
|
endtime:moment(moment(handleDateString(this.props.starttimes)).add(1, 'week')).format("YYYY-MM-DD HH:mm")
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|