I want to set time zone for my project. This is my code:
I set the format like this:
date_default_timezone_set("America/Caracas");
setlocale(LC_ALL,"es_ES@euro","es_ES","esp");
And I print it this way:
$time = date('H:i:s a', time());
echo $time;
I print the time but with 30 min of delay.