From ac394c8092ed77f2ddb46259a928f1e9b73ab954 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Wed, 22 Jun 2022 00:02:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E8=AF=81event=E7=9A=84=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=97=B6=E9=97=B4=E6=98=AF=E4=BB=8E00:00:00=E7=82=B9?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=EF=BC=8C=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=98=AF=E4=BB=A523:59:59=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- schedule/src/main/resources/template/js/index/mySchedule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule/src/main/resources/template/js/index/mySchedule.js b/schedule/src/main/resources/template/js/index/mySchedule.js index eb232baef..f24886d4b 100644 --- a/schedule/src/main/resources/template/js/index/mySchedule.js +++ b/schedule/src/main/resources/template/js/index/mySchedule.js @@ -71,6 +71,7 @@ layui.config({ month: '月', agendaDay: '日', }, + timezone: 'local', // 保证event的开始时间是从00:00:00点开始,结束时间是以23:59:59结束 slotLabelFormat: "H(:mm)a", //日期视图左边那一列显示的每一格日期时间格式 firstDay: 1, //设置一周中显示的第一天是哪天,周日是0,周一是1,类推 allDayText: "全天", //自定义全天视图的名称 @@ -126,7 +127,6 @@ layui.config({ }}); }, eventDrop: function(event, dayDelta, revertFunc) {//拖动事件 - debugger if(event.allDay){ if(new Date(event.start._d.format("yyyy-MM-dd")) < new Date(getYMDFormatDate().replace("-", "/").replace("-", "/"))){ winui.window.msg('即将重置的日期不能早于当前日期。', { shift: 6, skin: 'msg-skin-message'}); -- GitLab