Configure timezone on a wiki

From Organic Design wiki
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