From 57e5019ed85e80b6bb319b9903924be2c66a06dc Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Fri, 2 Apr 2021 10:33:11 +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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pmcalendar.php b/pmcalendar.php index 7dc6a7c..38975b1 100644 --- a/pmcalendar.php +++ b/pmcalendar.php @@ -2248,9 +2248,12 @@ if ($act == 'newevent') { endmonth = endmonth+24*60*60 - 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 - // console.log(endmonth) + var endmonth2 = Date.parse(new Date())/1000 + endmonth2 = endmonth2 - (endmonth2%86400)+57600 + if(endmonth >= endmonth2){ + endmonth = endmonth2 + } + console.log(endmonth) $.ajax({ url: './?app=pmcalendar&act=getEvents', dataType: 'json',