Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-apps-script/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kendo ui 剑道调度程序可以';t在保存事件中设置结束_Kendo Ui - Fatal编程技术网

Kendo ui 剑道调度程序可以';t在保存事件中设置结束

Kendo ui 剑道调度程序可以';t在保存事件中设置结束,kendo-ui,Kendo Ui,我正试图以编程方式更改启动调度程序的保存事件时的开始和结束日期 我正在使用moment.js进行操作。这适用于start值,但不会更新end 这就是我正在做的: var start = moment(e.event.start).hours(6).minutes(30).seconds(0), end = start.clone().add(8, 'hours'); if (e.event.isAllDay) { e.event.set('start', start.toDate

我正试图以编程方式更改启动调度程序的
保存
事件时的
开始
结束
日期

我正在使用moment.js进行操作。这适用于
start
值,但不会更新
end

这就是我正在做的:

 var start = moment(e.event.start).hours(6).minutes(30).seconds(0),
 end = start.clone().add(8, 'hours');
 if (e.event.isAllDay) {
     e.event.set('start', start.toDate() );
     e.event.set('end', end.toDate() );
}
这将
全天事件的开始时间设置为06:30:00,但结束时间不会更新,始终为00:00:00

你知道为什么我不能用这种方式设定结束时间吗