Revert r20558: appears to be trying to treat symptoms of misformatted data being...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 28 Mar 2007 19:14:24 +0000 (19:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 28 Mar 2007 19:14:24 +0000 (19:14 +0000)
Instead, find the bits that are passing raw database-format timestamps in there and make them normalize their data properly through wfTimestamp()

RELEASE-NOTES
languages/Language.php

index 909f1c8..fd08cb5 100644 (file)
@@ -276,7 +276,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   image
 * (bug 8582) Allow thumbnailing when imagesize has a space.
 * (bug 8716) Change math_inputhash and math_outputhash to byte for Postgres
-* (bug 8558) Correct display of timestamps on some pages when using Postgres
 * (bug 9343) Correct internal name for Wolof language
 * (bug 9363) Fix Postgres error on Recentchangeslinked
 * (bug 5142) Fixed call of hook ArticleViewHeader
index db24767..a23c304 100644 (file)
@@ -753,12 +753,6 @@ class Language {
        */
        function timeanddate( $ts, $adj = false, $format = true, $timecorrection = false) {
                $this->load();
-
-               ## Account for non-integer timestamps
-               if (substr($ts,4,1) === '-') {
-                       $ts = preg_replace('/\D/', '', $ts);
-               }
-
                if ( $adj ) { 
                        $ts = $this->userAdjust( $ts, $timecorrection ); 
                }