My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 141: Calendar doesn't show event from previous month
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Oct 2009


Sign in to add a comment
 
Reported by leandrok...@gmail.com, Oct 21, 2009
What steps will reproduce the problem?
1. Create a CalEvent entry within a date that ends on the previous month, 
but that still shows on the current month. Like September 30rd for 
instance.
2. Load that entry on the calendar from a JSon response page, like the 
"json-events.php" included in the examples.
3. Move to the next month, on this example, move to October.

What is the expected output? What do you see instead?
Should list the event in the current month even though it's an event from 
the previous month shouldn't it? The event isn't listed.

What version of the product are you using? On what operating system?
full calendar 1.4 on windows vista

Please provide any additional information below.
I have an aspx page the sends the current data as a "text/json" response to 
the browser:
[{"id": 13,"title": "loira do brasileirão","start": "2009-9-27","end": 
"2009-9-30","url": ""},{"id": 18,"title": "megan fox na direita","start": 
"2009-9-29","end": "2009-9-29","url": ""},{"id": 19,"title": "kate 
beckinsale na direita","start": "2009-10-1","end": "2009-10-1","url": 
""},{"id": 21,"title": "céu na direita","start": "2009-10-1","end": "2009-
10-1","url": ""},{"id": 14,"title": "jennifer aniston com cereja na 
boca","start": "2009-10-1","end": "2009-10-20","url": ""},{"id": 
15,"title": "jennifer connelly","start": "2009-10-21","end": "2009-10-
21","url": ""},{"id": 20,"title": "wow da direita","start": "2009-10-
21","end": "2009-10-31","url": ""},{"id": 16,"title": "monica 
olsen","start": "2009-10-22","end": "2009-10-23","url": ""},{"id": 
17,"title": "lindsay lohan","start": "2009-10-24","end": "2009-11-7","url": 
""}]

I initialize the calendar using the following script:
jQuery().ready(function() {
    jQuery('#calendar').fullCalendar({
        events: eventUrl,
        aspectRatio: 1.0,
        editable: true 
    })
});

the calendar is rendered correctly, but when I browse to october, the 
calendar only shows the events with id 20, 15 and 16
it doesn't show any other event at all =\
and if I change the end date of the event id 20 to, let's say, november 
1st, it won't show it either...

so I would like to know if I'm doing something wrong or is it really an odd 
behavior

thanks in advance!
ps.: great plugin, REALLY handy! thanks a lot for this great piece of code!
Oct 23, 2009
#1 leandrok...@gmail.com
ok I found the problem... it doesn't have anything to do with your script nor the 
situation I described above... it turns out that the parseDate method from javascript 
required a month and a day with 2 digits, and months/days below 10 I was passing only 
one digit... filling the left with "0" fixed the problem
Oct 29, 2009
Project Member #2 adamrs...@gmail.com
glad you fixed the problem
Status: Done
Sign in to add a comment

Powered by Google Project Hosting