r12276 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12275‎ | r12276 | r12277 >
Date:22:44, 28 December 2005
Author:nikerabbit
Status:old
Tags:
Comment:
Erps, fix timestamp formatting
Modified paths:
  • /trunk/phase3/languages/LanguageFy.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/LanguageFy.php
@@ -975,8 +975,8 @@
976976 $datePreference = $this->dateFormat( $format );
977977
978978 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
979 - $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
980 - $year = $this->formatNum( substr( $ts, 0, 4 ), true );
 979+ $day = 0 + substr( $ts, 6, 2 );
 980+ $year = substr( $ts, 0, 4 );
981981
982982 switch( $datePreference ) {
983983 case MW_DATE_DMY: return "$day $month $year";
@@ -1014,7 +1014,7 @@
10151015 if ( $datePreference == MW_DATE_ISO ) {
10161016 $t .= $sep . substr( $ts, 12, 2 );
10171017 }
1018 - return $this->formatNum( $t );
 1018+ return $t;
10191019 }
10201020
10211021 function getMessage( $key ) {

Status & tagging log