Manual:$wgLocalTZoffset/pl

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgLocalTZoffset and the translation is 12% complete.

Other languages:
English • ‎español • ‎français • ‎magyar • ‎polski • ‎日本語
Ustawienia strefy czasowej: $wgLocalTZoffset
Add a distance to the server timezone in Minutes.
Wprowadzono w wersji:pre 1.1.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(numeric) or null
Domyślna wartość:null
Inne ustawienia: Alfabetycznie | Według funkcji

Szczegóły

Set an offset from UTC in minutes to use for the default timezone setting for anonymous users and new user accounts. Also used for users who set the corresponding text field in their preferences to an empty string. This setting is used for most date/time displays in the software, and is overrideable in user preferences. It is NOT used for signature timestamps.

Leave at NULL to show times in universal time (UTC/GMT), or specify an offset in minutes.

Uwaga Uwaga: Changing this parameter during runtime may result in server crash (Apache on Windows).

Examples

To avoid problems with daylight saving time, you can have PHP calculate the offset for you. date('Z') returns the timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive:

$wgLocaltimezone = 'CET';
// Set to timezone offset in minutes as calculated by PHP
$wgLocalTZoffset = date('Z') / 60;

Zobacz też