Changes
no edit summary
''Note: Upload and deletion logs will probably still be listed in UTC''<br>
''Note: This method has been confirmed to work on MediaWiki: 1.5.6.'' ==Unconfirmed Methods== *If you just want to use the local time of your PC, you can just add this line in your LocalSettings.php: $wgLocalTZoffset = date("Z") / 3600; ---- *To use your local time zone (say NZDT) put this in LocalSettings.php $wgLocalTZoffset = 13; ---- * In my case the primary method did not take daylight savings time into account. The next example works for me:<pre>#Set Default Timezone$wgLocaltimezone = "Europe/Amsterdam"; #Calculate the timezone offset with UTC$oldtz = getenv("TZ");putenv("TZ=$wgLocaltimezone");$wgLocalTZoffset = date("Z") / 3600 Date("I");putenv("TZ=$oldtz");</pre> ''Note: The methods in this section are unconfirmed and may not work properly.''[[category:time]][[Category:Uncategorized]]meth