Export to GitHub

fullcalendar - issue #689

All day events span two days


Posted on Oct 28, 2010 by Massive Panda

Hey there,

I've got a problem with the display of all day events. According to you (great) documentation:

>If an event is all-day... >the end date is inclusive. This means an event with start Nov 10 and end >Nov 12 will span 3 days on the calendar.

If you create a single all day event in Lightning it's saved like this:

>... >SUMMARY:Tuesday ;) >DTSTART;VALUE=DATE:20101005 >DTEND;VALUE=DATE:20101006 >...

So it's starting 20101005T000000 and ends on 20101006T000000 and therefore lasts exactly 24 hours. Would it end on 20101005T235959 it'd miss a second. Google finds a lot of discussions on this topic. :|

In combination with your implementation of all-day, it's leading to an event spanning two days instead of one. I could only fix it by manually changing the end date by one day, but this is something I don't like.

Any idea on this?

Best regards Matthias

Comment #1

Posted on Nov 22, 2010 by Helpful Monkey

it sounds like you'll need to add a day to the end date of every "all-day" event of yours before it hits fullcalendar.

i chose to do things the way they are now b/c to most people, it is less confusing (exclusive end dates are hard for some people to understand.. thought their events were one day too short)

Comment #2

Posted on Nov 22, 2010 by Massive Panda

Yeah... I'm already remapping the day in my feed and as stated the world's meaning on this is undecided. Thanks for looking into it.

Status: Done