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 displayed in Two cells eventhough that is one Day Event #7

Closed arepalli-praveenkumar closed 10 years ago

arepalli-praveenkumar commented 10 years ago

This is one of the event data This is All day event that starts at "Sat, Aug 2, 2014 11:59 PM" and ends at "Sat, Aug 2, 2014 12:00 AM" Current :This event displayed in Aug 1 and Aug 2 cells Expected :This event should be displayed in Aug 2 cell

   {
      allDayEvent: "Y"
      description: "Desc"
      endDate: "Sat, Aug 2, 2014 11:59 PM"
      location: "Chennai"
      startDate: "Sat, Aug 2, 2014 12:00 AM"
      statusName: "Not Started"
      subject: "aug 2 Event"
    }
twinssbc commented 10 years ago

@praveenkumararepalliGit See the description of the event format. If you want to use allDay event, you need to set the time to UTC time.

startTime If allDay is set to true, the startTime has to be as a UTC date which time is set to 0:00 AM, because in an allDay event, only the date is considered, the exact time or timezone doesn't matter. For example, if an allDay event starting from 2014-05-09, then startTime is

var startTime = new Date(Date.UTC(2014, 4, 8)); endTime If allDay is set to true, the startTime has to be as a UTC date which time is set to 0:00 AM, because in an allDay event, only the date is considered, the exact time or timezone doesn't matter. For example, if an allDay event ending to 2014-05-10, then endTime is

arepalli-praveenkumar commented 10 years ago

Yes it works fine.