My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 796: Wrong start and end Dates
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Feb 2011


Sign in to add a comment
 
Reported by paulofab...@gmail.com, Jan 16, 2011
events: function(start, end, callback) {
    $.ajax({
        url: 'http://localhost:8080/ratinho/agenda/json?m=' + start,
	dataType: 'json'
...

Hi guys, I need to concat the calendar“s date to my url. Today is Jan 16  but when I console.log() start param, it shows Dec 26 and end param shows Feb 06. 

why is this happening ?

Thanks,
Paulo


Jan 17, 2011
Project Member #1 althaus.it
http://arshaw.com/fullcalendar/docs/event_data/events_function/

"This function will be given start and end parameters, which are Date objects denoting the range the calendar needs events for."

What do you mean with "the calendar's date"? Current date, selected date, something totally different?

Jan 17, 2011
#2 paulofab...@gmail.com
Hi,
well, I mean the current calendar's view. My default is month, so I see the january month and I think the start and end params should be the first and last days of january but I get these december and february dates. I am running it localy yet but my computer date and time are correct and we can be sure of it cause the calendar loads the january month.
I have turned to false the timezone option on fullcalendar.js but nothing has changed.
i am using full calendar in a grails project.
thanks
Jan 18, 2011
Project Member #3 althaus.it
It makes sense cause the calendar loads some more days to show a full week. See the current view on the example (http://arshaw.com/fullcalendar/). It goes from 26th December to 5th February.
Jan 21, 2011
#4 p0020...@brookes.ac.uk
The calendar is getting the data for the *Visible* dates, not just the month that is selected. This is usually helpful as it shows the borderline dates. However, maybe it could have an option to only show the *Specified* dates too.

Default behaviour is right though.
Feb 13, 2011
Project Member #5 adamrs...@gmail.com
yeah, intended behavior
Status: Done
Sign in to add a comment

Powered by Google Project Hosting