canvs / fullcalendar

Automatically exported from code.google.com/p/fullcalendar
0 stars 0 forks source link

Some events don't show #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by info%xyl...@gtempaccount.com on 9 Jun 2009 at 11:06

GoogleCodeExporter commented 9 years ago
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.

Original comment by jstrong...@gmail.com on 9 Jun 2009 at 7:37

GoogleCodeExporter commented 9 years ago
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.

Original comment by adamrs...@gmail.com on 17 Jun 2009 at 2:33

GoogleCodeExporter commented 9 years ago
yep, ive also encountered this bug but bug appears only in IE though

Original comment by albert.o...@gmail.com on 19 Jun 2009 at 6:39

GoogleCodeExporter commented 9 years ago
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)

Original comment by adamrs...@gmail.com on 30 Jun 2009 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by adamrs...@gmail.com on 14 Aug 2013 at 2:11

GoogleCodeExporter commented 9 years ago

Original comment by adamrs...@gmail.com on 14 Aug 2013 at 2:12