Difference between revisions of "Configure timezone on a wiki"

From Organic Design wiki
(code-base hack no longer needed)
(Changing the default timezone for a wiki: /60 not /3600)
Line 9: Line 9:
 
$wgLocaltimezone="Pacific/Auckland";
 
$wgLocaltimezone="Pacific/Auckland";
 
putenv("TZ=$wgLocaltimezone");
 
putenv("TZ=$wgLocaltimezone");
$wgLocalTZoffset = date("Z") / 3600;
+
$wgLocalTZoffset = date("Z") / 60;
 
</php>}}
 
</php>}}
  

Revision as of 02:44, 2 April 2009

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:

{{{1}}}

See also