This ONLY applies to ABPro running on Joomla 1.6.x, 1.7.x or 2.5.x.
Symptom
March 11, 2012 appears twice in the GAD and Wizard booking screens.
Reason
When calculating dates for the grid, ABPro adjusts to UTC**. This does not work one day of the year. Why - I do not know.
Work Around #1
If you DO NOT accept bookings on Sundays you can set your resources like this:
- Allow Booking on Days - uncheck Sunday
- Hide non-Booking days - Yes
- Non-Booking days message - empty the box
Work Around #2
If you DO accept bookings on Sundays you can edit file:
\components\com_rsappt_pro2\gad_ajax.php
or if you have set ABPro's 'Time on Y-Axis' = Yes, file
\components\com_rsappt_pro2\gad_ajax2.php
Around line 563 look for:
$jdayname = new JDate( DateAdd("d", $day, strtotime($grid_date.' UTC')));
Remove the UTC, to change to:
$jdayname = new JDate( DateAdd("d", $day, strtotime($grid_date)));
Note: this code line appears 6 times in the file so you need to change just the one at line 563, if you do not have line numbers in you editor you can change ALL.
Fix
Upgrade to ABPro 2.0.3, beta 4a.
** fix for Joomla 1.6 bug(?) whereby the JDate switches php timezones for a toFormat but does not put it back.
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=24604
Pass the grid date as UTC to JDate.
Joolma patch in June 2011 should eliminate the need for UTC adjustment and it will be removed in 2.0.3 beta 4.