Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
456 views
in Technique[技术] by (71.8m points)

javascript - 完整的日历显示开始日期和结束日期,但结束日期显示错误(Full calendar display start date and end date but end date wrong display)

I have to use fullCalendar.

(我必须使用fullCalendar。)

The problem is my event's end date is 28-11-2019 but in the calendar it displays as 27-11-2019 .

(问题是我的活动的结束日期是28-11-2019但是在日历中它显示为27-11-2019 。)

What is the solution?

(解决办法是什么?)

<script>
$(document).ready(function () {
  var calendar = $('#calendar').fullCalendar({
    editable: false,
    events: "php/fetch-event.php",
    eventOrder:('-batch'),
    displayEventTime: false,
    eventRender: function (event, element) {
      if (event.batch  === 'morning') {
        element.css('background-color', '#7cbfe5');
      } 
      else  {
        element.css('background-color', '#9fe78d');
      }
    },
  });
});  
</script>
  ask by Ravi Prasad translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...