Manual:Timezone/ro

The default Timezone (tz) for users who have not specified a custom offset may be configured manually.

Primary method

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


 * Set the value to the proper value which you can find here. See examples below.

This timezone will be used in:
 * ~ signatures
 * timestamps in recentchanges
 * timestamps in history

Adding this code to the LocalSettings.php conflicts with the RSS Feed dates in. See the Discussion page of Extension:RSS for more information

Alternative method
This method has been confirmed by multiple users in situations where the primary method has not worked.

Alternative methods
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:

Unconfirmed methods

 * 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.


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

The methods in this section are unconfirmed and may not work properly.

Specificarea manuala a fusului orar
The primary method needs the server to support the 'tz' database; some non-GNU hosts don't do that. Oricum, poti specifica un fus orar manual - din pacate, doar "GMT0" pare sa functioneze pe Windows.

Ex. foloseste


 * in loc de


 * sau


 * in loc de

Pentru detalii vezi


 * Configurarea sistemului: Fusuri orare (Lista de fusuri orare)
 * Specificand fusul orar cu TZ (format general)
 * timezones.conf.xml (alta lista de fusuri orare)