Your try was:
$d = mktime(0, 0, 0, date('n',$d), date('j',$d)+1, date('Y', $d), date('g:i a',$d));
It should be:
$d = mktime(
date('g',$d) // This is the hours
, date('i',$d) // This is the minutes
, 0 // You didn't wan't to consider the seconds
, date('n',$d)
, date('j',$d) + 1
, date('Y', $d)
);
==================
By the way, did you made a change to that the DateAddBusinessDays() function?
The first line has the '+1' in the 'days' parameter where the $d variable is set up. I would have thought that $d should start off as today ... is that right? At the moment, with the '+1', $d starts off as tomorrow. So, if you want to 'add one business to 'today' (and get 'tomorrow') then, at the moment, you would have to call ...
$tomorrow = DateAddBusinessDays(0);
... instead of ...
$tomorrow = DateAddBusinessDays(1);
.. which is what I would have expected.