前端:修改时间

This commit is contained in:
罗松柏 2021-03-31 16:05:45 +08:00
parent 5d2b3c5d84
commit 5d39e5b4e5

View File

@ -1934,8 +1934,6 @@ if ($act == 'newevent') {
starttime = start;
endtime = end;
console.log("11111")
$.ajax({
url: './?app=pmcalendar&act=getEvents',
dataType: 'json',
@ -1947,7 +1945,10 @@ if ($act == 'newevent') {
success: function (doc) {
console.log(doc);
callback(doc.calendarData);
// console.log(doc);\
// starttime
// endtime
$("#dabaonum").html("("+doc.count['打包']+")");
$("#gengxinnum").html("("+doc.count['版本更新']+")");
$("#xiufunum").html("("+doc.count['修复外网']+")");
@ -2242,12 +2243,14 @@ if ($act == 'newevent') {
var startdate = new Date(start);
var startmonth = Date.parse(startdate)/1000;
// var monthEndDate = new Date(time.getFullYear(), time.getMonth() + 1, 0);
// var endmonth=Date.parse(monthEndDate)/1000;//s
// endmonth = endmonth+24*60*60 - 1
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;
var endmonth = Date.parse(new Date())/1000
endmonth = endmonth - (endmonth%86400)+57600
// var endmonth = Date.parse(new Date())/1000
// endmonth = endmonth - (endmonth%86400)+57600
// console.log(endmonth)
$.ajax({
url: './?app=pmcalendar&act=getEvents',
dataType: 'json',