From: Jeff Janes Date: Mon, 23 Feb 2015 21:25:07 +0000 (-0800) Subject: PostgreSQL: Fix timestamp in Special:ListFiles X-Git-Tag: 1.31.0-rc.0~12262 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=36e37310841f6ec6d0185119d17fa7bbcbdecf26;p=lhc%2Fweb%2Fwiklou.git PostgreSQL: Fix timestamp in Special:ListFiles The database field img_timestamp needs to converted from database timestamp format to the wf internal format. Bug: T72931 Change-Id: Ifbac6805a43a809962372016668c3e41fcaeb7c0 --- diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index 760704d90e..d4b45fb311 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -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 ) {