Fix way to long schedule after registering forgotten task #116
@ -135,6 +135,8 @@ export class ForgottenTaskStartDialogComponent implements OnInit{
|
|||||||
event.start = newStart;
|
event.start = newStart;
|
||||||
if (newEnd) {
|
if (newEnd) {
|
||||||
event.end = newEnd;
|
event.end = newEnd;
|
||||||
|
} else {
|
||||||
|
event.end = moment(event.start).add( 30, "minutes").toDate()
|
||||||
}
|
}
|
||||||
this.events = [...this.events];
|
this.events = [...this.events];
|
||||||
}
|
}
|
||||||
@ -180,6 +182,8 @@ export class ForgottenTaskStartDialogComponent implements OnInit{
|
|||||||
}
|
}
|
||||||
|
|
||||||
register() {
|
register() {
|
||||||
|
console.log(this.events[this.events.length-1].start)
|
||||||
|
console.log(this.events[this.events.length-1].end)
|
||||||
this.scheduleService.schedulesTaskIDForgottenPost(this.events[this.events.length-1].meta.taskID, {
|
this.scheduleService.schedulesTaskIDForgottenPost(this.events[this.events.length-1].meta.taskID, {
|
||||||
startTime: moment(this.events[this.events.length-1].start).format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
|
startTime: moment(this.events[this.events.length-1].start).format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
|
||||||
endTime: moment(this.events[this.events.length-1].end).format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
|
endTime: moment(this.events[this.events.length-1].end).format('YYYY-MM-DDTHH:mm:ss.SSSZ'),
|
||||||
|
Loading…
Reference in New Issue
Block a user