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") / | + | $wgLocalTZoffset = date("Z") / 60; |
</php>}} | </php>}} | ||