This commit is contained in:
罗松柏 2021-04-02 10:33:11 +08:00
parent 92d69fe61a
commit 57e5019ed8

View File

@ -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',