From 36e37310841f6ec6d0185119d17fa7bbcbdecf26 Mon Sep 17 00:00:00 2001 From: Jeff Janes Date: Mon, 23 Feb 2015 13:25:07 -0800 Subject: [PATCH] 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 --- includes/specials/SpecialListfiles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1