twinssbc / AngularJS-ResponsiveCalendar

A pure AngularJS responsive calendar directive
http://twinssbc.github.io/AngularJS-ResponsiveCalendar/demo/
MIT License
112 stars 77 forks source link

All Day event not showing in Next and Previous months #52

Closed captainmorgan0 closed 8 years ago

captainmorgan0 commented 8 years ago

I have created an event in the previous month, current month and next month. When I load the calendar, in the current month view, I can see one dark blue day and 2 light blue days (for the events in the previous an next month). When I go to the previous or next month the all day event is not displayed (the day is not dark blue, it remains white). And when I click on the day it displays "No Events" You can see this event in week and day views.

twinssbc commented 8 years ago

@captainmorgan0 Could you give me a specific sample on which date you put the event so that I can try to reproduce it?

captainmorgan0 commented 8 years ago

Add an all day event for May 5th

twinssbc commented 8 years ago

@captainmorgan0 I can't reproduce it. See the below screenshots and code snippets.

        var s = new Date(Date.UTC(2016, 3, 5));
        var e = new Date(Date.UTC(2016, 3, 6));
        events.push({
            title: 'All Day - test',
            startTime: s,
            endTime: e,
            allDay: true
        });

        var s = new Date(Date.UTC(2016, 4, 5));
        var e = new Date(Date.UTC(2016, 4, 6));
        events.push({
            title: 'All Day - test',
            startTime: s,
            endTime: e,
            allDay: true
        });
        var s = new Date(Date.UTC(2016, 5, 5));
        var e = new Date(Date.UTC(2016, 5, 6));
        events.push({
            title: 'All Day - test',
            startTime: s,
            endTime: e,
            allDay: true
        });

screen shot 2016-04-20 at 8 21 03 am screen shot 2016-04-20 at 8 22 17 am screen shot 2016-04-20 at 8 22 27 am

captainmorgan0 commented 8 years ago

I now see what I was doing wrong. I had the start and end dates the same.