From 8a8a4253a6eb1e09f1eb081846607968ea0485c5 Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Tue, 2 Feb 2021 10:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=9B=BE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pmcalendar.php b/pmcalendar.php index 4ab5022..49aca54 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -2055,7 +2055,8 @@ if ($act == 'newevent') { $("#endyear").val(time.getFullYear()); $("#endmonth").val(time.getMonth() + 1); - var start = time.getFullYear() + "/"+moment(time.getMonth() + 1).startOf("month").format("MM/DD")+" " + '00:00:00' + var start = time.getFullYear() + "/"+ (time.getMonth() + 1) +"/"+ "01" +" " + '00:00:00'; + console.log(start); var startdate = new Date(start); var startmonth = Date.parse(startdate)/1000;