Calender Action

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

Calender Action

Postby sim » Fri Feb 03, 2012 6:19 pm

Hi
Got stummped on getting the calender show events when the month days are not exactly 31 i.e. in the current month the total number of days are 29 and any event entered in the calender does not show up unless the url is manually altered since this is hardcoded in the actions/calender.php
Just changed:
$nav['prev']['url'] = $app->url('-action=calendar&'.$dateAtt.'='.urlencode(date('Y-m-01',$prevTime).'..'.date('Y-m-t', $prevTime)), true, true);
(Notice the date('Y-m-t' . t calculates the month days in the selected month and urls are properly generated)
around line 41 - 45
Now the calender events appear as they should.
Hope it helps someone.
sim
 
Posts: 12
Joined: Fri Dec 02, 2011 2:35 am

Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 18 guests

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