Please I have search through stackoverflow and couldn't find the right answer to this. I want to output a date for my country Nigeria on a website.
Nigeria timezone is GMT+01:00
I have this
<?php
date_default_timezone_set("WAT");
echo date("M d, Y h:i a")."<p></p>";
//echo time();
?>
I think you got the timezone wrong.
According to this list it is Africa/Lagos
<?php
date_default_timezone_set("Africa/Lagos");
echo "<p>" . date("M d, Y h:i a") . "</p>";
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With