twinssbc / AngularJS-ResponsiveCalendar

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

The event is displayed wrongly in calendar #44

Closed jsmasterathul closed 8 years ago

jsmasterathul commented 8 years ago

This is my event source

$scope.eventSource = [ { title: 'All Day - 1', startTime: new Date(2016,2,1), endTime: new Date(2016,2,2), allDay: true }, { title: 'All Day - 2' , startTime: new Date(2016,2,1), endTime: new Date(2016,2,2), allDay: true }, { title: 'All Day - 3' , startTime: new Date(2016,2,2), endTime: new Date(2016,2,2), allDay: true }];

The events are displayed one day prior when it comes to calendar, do we need to specify time zone also?

twinssbc commented 8 years ago

@jsmasterathul If you want to use allDay event, you have to set the time part to 0:00AM. There's explanation in the README. Thanks.