r60826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60825‎ | r60826 | r60827 >
Date:01:51, 8 January 2010
Author:tstarling
Status:ok
Tags:
Comment:
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) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php
@@ -407,7 +407,7 @@
408408 if ( isset( $wgLocaltimezone ) ) {
409409 $tz = new DateTimeZone( $wgLocaltimezone );
410410 } else {
411 - $tz = new DateTimeZone( 'UTC' );
 411+ $tz = new DateTimeZone( date_default_timezone_get() );
412412 }
413413 } else {
414414 # if local time was not requested, convert to UTC

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60825* Fixed the issue of all date functions throwing E_STRICT on their first call...tstarling01:48, 8 January 2010

Status & tagging log