Configure timezone on a wiki

From Organic Design wiki
Revision as of 18:11, 22 May 2015 by 127.0.0.1 (talk) (Change source-code blocks to standard format)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Procedure.svg Configure timezone on a wiki
Organic Design procedure

Changing the default timezone for a wiki

The default timezone for the server should be set to UTC, so if a particular wiki needs to have a different default from that, the usual way to set it is in the LocalSettings.php file as follows:

$wgLocaltimezone="Pacific/Auckland";
putenv("TZ=$wgLocaltimezone");
$wgLocalTZoffset = date("Z") / 60;

See also