The database field img_timestamp needs to converted
from database timestamp format to the wf internal format.
Bug: T72931
Change-Id: Ifbac6805a43a809962372016668c3e41fcaeb7c0
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 ) {