Manual:Timezone/pt

A zona horária (tz) predefinida para os utilizadores que não especificaram uma personalizada poderá ser configurada manualmente.

Default value
The default value is taken from the webserver configuration (PHP ini file). For documentation:

https://www.php.net/datetime.configuration#ini.date.timezone



Método primário

 * Create a backup copy of the file found in your install directory
 * Edit LocalSettings.php and add the following code:

Veja os exemplos em baixo.
 * Set the value to the proper value which you can find here.



Método alternativo
This method has been confirmed by multiple users in situations where the primary method has not worked.



Métodos alternativos
If you just want to use the local time of your PC, you can add this line in your LocalSettings.php. This method is what MediaWiki does by default (see includes/Setup.php); it also avoids problems with daylight savings time:



Métodos não confirmados

 * To use your local time zone (say NZDT) put this in LocalSettings.php


 * This example may also work


 * In this case the primary method did not take daylight savings time into account. The example below works:


 * To make it work in 1.5.8, specify the offset in hours, so change all occurrences of '/ 60' to '/ 3600', for example.

Combine it with the tip above to make daylight savings work.

Note that you will need to provide the correct values if you want the zone to be selected by default in the timezone dropdown:
 * This line is needed in 1.16. It applies to both anonymous and logged in users.



Especificação manual da zona horária
The primary method needs the server to support the ' ' database; some non-GNU hosts don't do that. However you can supply timezone data manually - unfortunately, only "GMT0" seems to work on Windows.

Por exemplo, utilize


 * em vez de


 * ou


 * em vez de

Para detalhes, consulte


 * Configuração do sistema: Zonas Horárias (Lista de zonas horárias)
 * Specifying the Time Zone with TZ (formato geral)
 * timezones.conf.xml (outra lista de zonas horárias)