jenkins-bot has submitted this change and it was merged.
Change subject: PostgreSQL: Fix timestamp in Special:ListFiles
......................................................................
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
---
M includes/specials/SpecialListfiles.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Umherirrender: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/specials/SpecialListfiles.php
b/includes/specials/SpecialListfiles.php
index 760704d..d4b45fb 100644
--- a/includes/specials/SpecialListfiles.php
+++ b/includes/specials/SpecialListfiles.php
@@ -425,7 +425,7 @@
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 ) {
--
To view, visit https://gerrit.wikimedia.org/r/192456
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifbac6805a43a809962372016668c3e41fcaeb7c0
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jjanes <[email protected]>
Gerrit-Reviewer: Jjanes <[email protected]>
Gerrit-Reviewer: Umherirrender <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits