I have a simple function which returns an array of dates for a 7 day period. When it comes to a leap year, this is not working properly. I does take into account Feb 29th 2012 but when you get to the beginning of April, it goes haywire and throws in 3/4 (April 3rd) twice! In the printed array result set number  and  are incorrect. Both show 3/4
Can anyone tell me how to fix this issue? Here is the function to test so you can see the issue.
// Set mysql start date TS for day 1
$m = date('n', strtotime('2011-03-30'));
$d = date('j', strtotime('2011-03-30'));
$y = date('y', strtotime('2011-03-30'));
$startDateTS = mktime(0,0,0,$m,$d,$y);
$counter = $x;
$miniDateHeader[$x] = date('j/n', $startDateTS + ($counter * 86400));
$dateArray = setDates();
Thanks in advance. I must be missing something. Funny thing is, once you get past this 7 days and set the date to '2012-04-06' it displays the correct dates.