when I do the following I would expect to have the time exactly 120 days from now (4 months) however it is spitting out 120 days + 1 hour $current_time = time()+430246060; echo date ("l dS of F Y h:i:s A",$current_time);
I beleive this is due to either time() or date() auto accounting for daylight savings... does anyone know if this is the case? and if so is there a way I can turn that off?
TIA
You could use the mktime function, something like this :
$newdate = mktime (0,0,0,date("m"), date("d") + 120, date("Y"));
echo date ("l dS of F Y h:i:s A", $newdate);
Cheers