Is there timezone for Brasilia?

6

I'm developing an app in PHP. And you need to set Timezone to Brasilia. But in the php documentation I have:

$timezones = array(
'AC' => 'America/Rio_branco',   'AL' => 'America/Maceio',
'AP' => 'America/Belem',        'AM' => 'America/Manaus',
'BA' => 'America/Bahia',        'CE' => 'America/Fortaleza',
'DF' => 'America/Sao_Paulo',    'ES' => 'America/Sao_Paulo',
'GO' => 'America/Sao_Paulo',    'MA' => 'America/Fortaleza',
'MT' => 'America/Cuiaba',       'MS' => 'America/Campo_Grande',
'MG' => 'America/Sao_Paulo',    'PR' => 'America/Sao_Paulo',
'PB' => 'America/Fortaleza',    'PA' => 'America/Belem',
'PE' => 'America/Recife',       'PI' => 'America/Fortaleza',
'RJ' => 'America/Sao_Paulo',    'RN' => 'America/Fortaleza',
'RS' => 'America/Sao_Paulo',    'RO' => 'America/Porto_Velho',
'RR' => 'America/Boa_Vista',    'SC' => 'America/Sao_Paulo',
'SE' => 'America/Maceio',       'SP' => 'America/Sao_Paulo',
'TO' => 'America/Araguaia',     
);

How do I proceed?

I consulted this source: link

    
asked by anonymous 29.11.2017 / 16:01

1 answer

9

Use SP that is the same thing:

date_default_timezone_set('America/Sao_Paulo');

The most populous city in the region is referenced . You do not have to have one city per country and you can have several cities selected in the same region. It is not adopted the capital because it can change, although rarely it happens, if to change is a disorder.

    
29.11.2017 / 16:10