How can I set the time pattern to UTC or GMT in PHP?

1

Several systems, large sites when it is possible to inform the time they ask for the choice of UTC or GMT. I already tried doing this in PHP, but I did not succeed using default_date_timezone_set() , how can I do this?

    
asked by anonymous 19.04.2016 / 01:03

1 answer

3

You can use date_default_timezone_set('UTC') .

Coordinated Univeral Time is the same as

As it is conceptual, there is no better, no faster, none of this. But understand that UTC is a referential measure. The GMT is considered a time zone like any other time zone that is confused with UTC. In London / UK GMT is used most of the year as official spindle (but not all the time because of daylight saving time).

More information here and here .

    
19.04.2016 / 01:48