Adjust the time according to the user configuration on Special:Revisiondelete
authorTobias <churchofemacs@users.mediawiki.org>
Sat, 12 Sep 2009 17:06:11 +0000 (17:06 +0000)
committerTobias <churchofemacs@users.mediawiki.org>
Sat, 12 Sep 2009 17:06:11 +0000 (17:06 +0000)
RELEASE-NOTES
includes/specials/SpecialRevisiondelete.php

index 4c17d26..bb5253b 100644 (file)
@@ -492,6 +492,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 20556) Stub threshold's "other" <input> 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 ==
 
index 9492378..26e4de5 100644 (file)
@@ -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;
                }