Set time zone

0

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.

    
asked by Jdavid Barajas 10.05.2018 в 16:52
source

0 answers