前端:修改时间

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