I am using the following to get the date and time in a php script,
$DateTime = date("Y-m-d H:i:s")
I need to add six hours to this time so it shows the correct local time.
How is this done?
Thanx in advance,
Ben
How about this?
$time = time(); $time+=21600; // add 6 hours in sec $newtime = date("h:i:s: a", $time);