Dear Programmers,
I have lifted a php script code to echo the current time.
When I run the script, it echos a different time string from the current system time.
Please find the php time script below. Please what could be the possible cause of this and how can I debug it?
Thank you!
I have lifted a php script code to echo the current time.
When I run the script, it echos a different time string from the current system time.
Please find the php time script below. Please what could be the possible cause of this and how can I debug it?
Thank you!
Code:
<?php
date_default_timezone_set('UTC');
// Prints something like: Monday 8th of August 2005 03:12:46 PM
echo date('l jS \of F Y h:i:s A')."<br/>";
?>
Comment