issue-52 #63
@ -9,6 +9,7 @@ import {
|
||||
} from "../../../api";
|
||||
import {MatSnackBar} from "@angular/material/snack-bar";
|
||||
import {Router} from "@angular/router";
|
||||
import * as moment from "moment";
|
||||
|
||||
@Component({
|
||||
selector: 'app-basic-scheduler',
|
||||
@ -36,7 +37,7 @@ export class BasicSchedulerComponent implements OnChanges{
|
||||
if(this.task != undefined) {
|
||||
if(this.scheduleEntityInfo == undefined) {
|
||||
this.scheduleService.schedulesTaskIDBasicPut(this.task.taskID, {
|
||||
scheduleDate: this.dateCtrl.value
|
||||
scheduleDate: moment(this.dateCtrl.value).format('YYYY-MM-DDTHH:mm:ss.SSSZ')
|
||||
}).subscribe({
|
||||
next: resp => {
|
||||
this.scheduleEmitter.emit(resp as BasicScheduleInfo);
|
||||
@ -44,7 +45,7 @@ export class BasicSchedulerComponent implements OnChanges{
|
||||
})
|
||||
} else {
|
||||
this.scheduleService.schedulesScheduleIDBasicPost(this.scheduleEntityInfo!.scheduleID, {
|
||||
scheduleDate: this.dateCtrl.value
|
||||
scheduleDate: moment(this.dateCtrl.value).format('YYYY-MM-DDTHH:mm:ss.SSSZ')
|
||||
}).subscribe({
|
||||
next: resp => {
|
||||
this.router.navigateByUrl("/taskgroups/" + this.taskgroup!.taskgroupID + "/tasks/" + this.task!.taskID);
|
||||
|
Loading…
Reference in New Issue
Block a user