$time = time(); $time2 = date("M-d-Y h:m:s",$time); echo $time2;
That is my clock, but it is not set to my time zone. This clock is three hours fast. How do I change it so the time is right?
if you are own the computer that runs php. just change the clock.
else
echo date("Y-m-d G:i", strtotime("-3 hours") );
i dont run the php
$time = strtotime("-3 hours");