[Mediawiki-l] Reminder to Sysops: Timezone and Daylight Saving Time issues tonight: some Sysops might wish to adjust $wgLocalTZoffset

Thomas Gries mail at tgries.de
Sat Mar 25 20:35:34 UTC 2006


Hello all,

take note that a special global switch $wgLocalTZoffset can be used to 
adjust the display of time of the day in your wikis.
Attention: the variable can only be set to non-fractional hour offsets.

Example:

$wgLocalTZOffset = '+2'; (to display all date/times in a mediawiki with an
offset of +2 hours to the servertime, most often UTC.)

The variable is well commented in all recent MediaWiki distributions and 
is defined in DefaultSettings.php
Go back in time when the comment was introduced:
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/DefaultSettings.php?r1=1.365.2.6&r2=1.365.2.7

Further reading in http://bugzilla.wikipedia.org/show_bug.cgi?id=3305 .
and general issues of an automatic "switch" to or from DST see
http://bugzilla.wikimedia.org/show_bug.cgi?id=505

Regards,
Wikinaut





More information about the MediaWiki-l mailing list