Problem with Calendar on 31st date of every month

A place for users and developers of the Xataface to discuss and receive support.

Problem with Calendar on 31st date of every month

Postby muzafar » Tue May 08, 2012 10:55 pm

Greetings,

I am working on the calendar event and it is working for all other dates except the 31st of any month. I am sending the snapshot, you can check. I have event on 31st of may 2012, but it is not shown in the calendar, if i change the To date to 30 or some other dates, then it show the event in the calendar. below is my table structure.

reportDuration enum('Weekly', 'Bi-Weekly', 'Monthly', 'Quarterly')
reportFrom datetime
reportTo datetime
dueDate datetime
and my fields.ini file is:

[reportFrom]
event.date = 1
event.start = 1
widget:label = "From"


[reportTo]
event.date = 1
event.end = 1
widget:label = "To"

please lead me, what's the matter, why it doesn't show the event on date 31st?

your help will be greatly appreciated.
Attachments
31st-date.jpg
event on 31st is not showing in calendar
31st-date.jpg (59.05 KiB) Viewed 3741 times
other-dates.jpg
Other dates is shown in events
other-dates.jpg (55.03 KiB) Viewed 3741 times
view.jpg
detail view of the event
view.jpg (40.31 KiB) Viewed 3741 times
muzafar
 
Posts: 44
Joined: Mon Nov 28, 2011 9:25 pm

Re: Problem with Calendar on 31st date of every month

Postby simbioc » Wed May 09, 2012 3:20 am

Change

$records =& df_get_records_array($query['-table'], $query);
with
$records =& df_get_records_array($query['-table'], array());

(Approx line = 43 xataface/actions/calender.php)

Solves the issue.

Cheers!
simbioc
 
Posts: 4
Joined: Fri Mar 16, 2012 3:03 am

Re: Problem with Calendar on 31st date of every month

Postby shannah » Wed May 09, 2012 9:38 am

Unfortunately that fix will break the calendar action when you have more than 30 events in the table.

I have fixed this issue in SVN.
trunk rev 3584
1.3.x rev 3585
1.5.x rev 3586

If you replace your actions/calendar.php file with the one at http://weblite.ca/svn/dataface/core/bra ... lendar.php, it will fix the issue.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 8 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved