My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 32: Some events don't show
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by info%xyl...@gtempaccount.com, Jun 9, 2009
What steps will reproduce the problem?
1.I used the following code:
$('#calendar').fullCalendar({
				draggable: true,
				events: [
				{id: 1,
				title: "teste",
				start: new Date(2009, 5, 5,8),end: new Date(2009, 5, 10,23),url: 
"/vacations/1"},
				{id: 2,
				title: "Teste",
				start: new Date(2009, 6, 5),end: new Date(2009, 6, 5),url: "/vacations/2"}
				]
			});

2. The second event doesn't render

Only if I change the second event to the following code will it render the event:

{id: 2,
				title: "Teste",
				start: new Date(2009, 6, 5,8),end: new Date(2009, 6, 5,8),url: "/vacations/2"}


What is the expected output? What do you see instead?

I expected the calendar to render the second event without having to specify an hour.

What version of the product are you using? On what operating system?

fullcalendar-1.2

Please provide any additional information below.

Jun 9, 2009
#1 jstrong...@gmail.com
If the end date is the same as the start date, you don't need to specify an end date.
 It will show without needing to list an hour.  That is a temporary way of getting it
to work without a time.  Strange bug though.
Jun 16, 2009
Project Member #2 adamrs...@gmail.com
by design, end dates in fullcalendar are exclusive. so, if your event is 2 days long,
it will end on midnight of the second night (00:00:00 of the 3rd day). this allows
the span to be exactly 48 hours. this is an approach commonly used by date/calendar
software.

When you specify the start + end date to be exactly the same, you are effectively
saying your event is instantaneous and spans no time. a way to fix this, as jstrong
pointed out, is to omit the end time, which causes fullcalendar to pick an end time
of midnight.

fullcalendar simply won't display an event w/ no timespan. however, i do not like
this behavior. I will classify this as a bug. even if the timespan is zero, the event
should still be displayed. i will fix this in the next patch-level release.
Status: Accepted
Jun 18, 2009
#3 albert.o...@gmail.com
yep, ive also encountered this bug but bug appears only in IE though
Jun 29, 2009
Project Member #4 adamrs...@gmail.com
made this failsafe in the new version 1.2.1. the event will now be displayed and no
errors thrown. but still remember, end dates need to be EXCLUSIVE
(http://arshaw.com/fullcalendar/docs/#calevent-objects)
Status: Fixed
Aug 13, 2013
Project Member #5 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Implemented
Aug 13, 2013
Project Member #6 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Released
Sign in to add a comment

Powered by Google Project Hosting