PostgreSQL: Fix timestamp in Special:ListFiles
authorJeff Janes <jeff.janes@gmail.com>
Mon, 23 Feb 2015 21:25:07 +0000 (13:25 -0800)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 26 Feb 2015 19:52:04 +0000 (19:52 +0000)
The database field img_timestamp needs to converted
from database timestamp format to the wf internal format.

Bug: T72931
Change-Id: Ifbac6805a43a809962372016668c3e41fcaeb7c0

includes/specials/SpecialListfiles.php

index 760704d..d4b45fb 100644 (file)
@@ -425,7 +425,7 @@ class ImageListPager extends TablePager {
        function formatValue( $field, $value ) {
                switch ( $field ) {
                        case 'thumb':
-                               $opt = array( 'time' => $this->mCurrentRow->img_timestamp );
+                               $opt = array( 'time' => wfTimestamp( TS_MW, $this->mCurrentRow->img_timestamp ) );
                                $file = RepoGroup::singleton()->getLocalRepo()->findFile( $value, $opt );
                                // If statement for paranoia
                                if ( $file ) {