r23135 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23134‎ | r23135 | r23136 >
Date:20:33, 20 June 2007
Author:aaron
Status:old
Tags:
Comment:
*More system date bitching
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -438,7 +438,8 @@
439439 # No difference ? Return time unchanged
440440 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
441441
442 - # Generate an adjusted date
 442+ $eo_level = error_reporting(E_ALL); //grrr, no system date bitching
 443+ # Generate an adjusted date
443444 $t = mktime( (
444445 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
445446 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
@@ -446,7 +447,11 @@
447448 (int)substr( $ts, 4, 2 ), # Month
448449 (int)substr( $ts, 6, 2 ), # Day
449450 (int)substr( $ts, 0, 4 ) ); #Year
450 - return date( 'YmdHis', $t );
 451+
 452+ $date = date( 'YmdHis', $t );
 453+ error_reporting($eo_level); //grrr
 454+
 455+ return $date;
451456 }
452457
453458 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r23203Merged revisions 23120-23202 via svnmerge from...david09:07, 22 June 2007

Status & tagging log