From bce79e84cb381d78e52c0188e5aa6e15c0f659f7 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 8 Jan 2010 01:51:00 +0000 Subject: [PATCH] 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. --- ParserFunctions_body.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ParserFunctions_body.php b/ParserFunctions_body.php index 7d2e6073..ff3cf6e0 100644 --- a/ParserFunctions_body.php +++ b/ParserFunctions_body.php @@ -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