mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
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:
parent
4494f9ff66
commit
bce79e84cb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue