http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60826
Revision: 60826 Author: tstarling Date: 2010-01-08 01:51:00 +0000 (Fri, 08 Jan 2010) Log Message: ----------- When $wgLocaltimezone is null, make #timel match the behaviour of {{LOCALTIME}} in trunk: use the server's default timezone instead of UTC. Won't throw E_STRICT after the r60825 change to Setup.php. Modified Paths: -------------- trunk/extensions/ParserFunctions/ParserFunctions_body.php Modified: trunk/extensions/ParserFunctions/ParserFunctions_body.php =================================================================== --- trunk/extensions/ParserFunctions/ParserFunctions_body.php 2010-01-08 01:48:53 UTC (rev 60825) +++ trunk/extensions/ParserFunctions/ParserFunctions_body.php 2010-01-08 01:51:00 UTC (rev 60826) @@ -407,7 +407,7 @@ if ( isset( $wgLocaltimezone ) ) { $tz = new DateTimeZone( $wgLocaltimezone ); } else { - $tz = new DateTimeZone( 'UTC' ); + $tz = new DateTimeZone( date_default_timezone_get() ); } } else { # if local time was not requested, convert to UTC _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs