I am using the following PHP code to get the current time.
$time = time();
echo date('h:m:s A',$time);
The time returned is the wrong time. The current time is 05:14:33
PM on my computer and this function is showing 12:03:02
PM.
Why it is giving the wrong time and how can I get PHP to give the right time?