Open main menu

Manual:$wgLocaltimezone


Other languages:
Deutsch • ‎English • ‎Nederlands • ‎dansk • ‎español • ‎français • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎čeština • ‎русский • ‎العربية • ‎中文 • ‎日本語 • ‎한국어
Timezone settings: $wgLocaltimezone
Fake out the timezone that the server thinks it's in.
Introduced in version:1.4.0 (r773)
Removed in version:still in use
Allowed values:(string) or null
Default value:null
Other settings: Alphabetical | By function

DetailsEdit

Fake out the timezone that the server thinks it's in. This will be used for date display and not for what's stored in the database. Setting the variable to null will set the displayed time zone to the server's default.

Examples
$wgLocaltimezone = 'GMT';
$wgLocaltimezone = 'EST';
$wgLocaltimezone = 'EST8'; ## -6 hrs instead of -5
$wgLocaltimezone = 'PST8PDT';
$wgLocaltimezone = 'Asia/Bangalore';
$wgLocaltimezone = 'America/New_York';
$wgLocaltimezone = 'CET';

Note: Please refer to Manual:Timezone for more information.

See alsoEdit