[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.


$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:

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


More information about the MediaWiki-l mailing list