Displaying current time + 1 hour
Posted: Wed May 09, 2007 2:57 am
Hi,
I am trying to modify a bit of code which displays the current date and time:
The time diplayed is one hour behind as it's displaying the server's time. Is it possible to add an hour so that it displays the correct time in my location?
Many thanks,
Rob.
I am trying to modify a bit of code which displays the current date and time:
Code: Select all
$curtime = time();
$curdate = date("F j, Y h:i:s A", $curtime);Many thanks,
Rob.