From 5d2b3c5d84579edd28edda64425f904e43853a6c Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Tue, 16 Mar 2021 14:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pmcalendar.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmcalendar.php b/pmcalendar.php index 1b23e81..ec2f261 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -2245,7 +2245,9 @@ if ($act == 'newevent') { // var monthEndDate = new Date(time.getFullYear(), time.getMonth() + 1, 0); // var endmonth=Date.parse(monthEndDate)/1000;//s // endmonth = endmonth+24*60*60 - 1 - const endmonth = new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1; + // const endmonth = new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1; + var endmonth = Date.parse(new Date())/1000 + endmonth = endmonth - (endmonth%86400)+57600 $.ajax({ url: './?app=pmcalendar&act=getEvents', dataType: 'json',