From a725d405f555ed8b042ebf1a3cf194870f2ba41f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 18 Apr 2011 17:59:32 +0000 Subject: [PATCH] * (bug 28592) Wrong timestamp were displayed in old revisions --- includes/Article.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index f1862ea362..bd20b6e21b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3624,11 +3624,12 @@ class Article { } $revision = Revision::newFromId( $oldid ); + $timestamp = $revision->getTimestamp(); $current = ( $oldid == $this->mLatest ); - $td = $wgLang->timeanddate( $this->mTimestamp, true ); - $tddate = $wgLang->date( $this->mTimestamp, true ); - $tdtime = $wgLang->time( $this->mTimestamp, true ); + $td = $wgLang->timeanddate( $timestamp, true ); + $tddate = $wgLang->date( $timestamp, true ); + $tdtime = $wgLang->time( $timestamp, true ); $sk = $wgUser->getSkin(); $lnk = $current ? wfMsgHtml( 'currentrevisionlink' ) -- 2.20.1