From 973e6cf5254f9c134001c4a78e657a8535c1242f Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 12 Sep 2009 17:06:11 +0000 Subject: [PATCH] Adjust the time according to the user configuration on Special:Revisiondelete --- RELEASE-NOTES | 1 + includes/specials/SpecialRevisiondelete.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4c17d26f2e..bb5253b6d3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -492,6 +492,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 20556) Stub threshold's "other" in Special:Preferences now has a correct type="text" parameter * (bug 482) Don't include TOC in the printable version if it has been hidden +* Adjust the time according to the user configuration on Special:Revisiondelete == API changes in 1.16 == diff --git a/includes/specials/SpecialRevisiondelete.php b/includes/specials/SpecialRevisiondelete.php index 94923788af..26e4de5527 100644 --- a/includes/specials/SpecialRevisiondelete.php +++ b/includes/specials/SpecialRevisiondelete.php @@ -1132,7 +1132,7 @@ class RevDel_RevisionItem extends RevDel_Item { */ protected function getRevisionLink() { global $wgLang; - $date = $wgLang->timeanddate( $this->revision->getTimestamp() ); + $date = $wgLang->timeanddate( $this->revision->getTimestamp(), true ); if ( $this->isDeleted() && !$this->canView() ) { return $date; } @@ -1254,7 +1254,7 @@ class RevDel_ArchiveItem extends RevDel_RevisionItem { protected function getRevisionLink() { global $wgLang; $undelete = SpecialPage::getTitleFor( 'Undelete' ); - $date = $wgLang->timeanddate( $this->revision->getTimestamp() ); + $date = $wgLang->timeanddate( $this->revision->getTimestamp(), true ); if ( $this->isDeleted() && !$this->canView() ) { return $date; } -- 2.20.1