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.

This commit is contained in:
Tim Starling 2010-01-08 01:51:00 +00:00
parent 4494f9ff66
commit bce79e84cb

View file

@ -407,7 +407,7 @@ class ExtParserFunctions {
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