From: Brion Vibber Date: Wed, 9 Jul 2008 17:41:02 +0000 (+0000) Subject: Tweak to r37385: put the timestamp format normalization on the input read (Revision... X-Git-Tag: 1.31.0-rc.0~46601 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=61276a7d6a8b9563014e4c8afdca8c647488c0ed;p=lhc%2Fweb%2Fwiklou.git Tweak to r37385: put the timestamp format normalization on the input read (Revision::getTimestampFromId()) instead of the middle tier (Skin::lastModified()) --- diff --git a/includes/Revision.php b/includes/Revision.php index 8058e61912..e1b4119d4a 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -917,7 +917,7 @@ class Revision { $dbw = wfGetDB( DB_MASTER ); $timestamp = $dbw->selectField( 'revision', 'rev_timestamp', $conds, __METHOD__ ); } - return $timestamp; + return wfTimestamp( TS_MW, $timestamp ); } /** diff --git a/includes/Skin.php b/includes/Skin.php index 9627d9ea9f..a9e44ab4d9 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1205,8 +1205,7 @@ END; function lastModified() { global $wgLang, $wgArticle; if( $this->mRevisionId ) { - $timestamp = wfTimestamp( TS_MW, - Revision::getTimestampFromId( $this->mRevisionId, $wgArticle->getId() ) ); + $timestamp = Revision::getTimestampFromId( $this->mRevisionId, $wgArticle->getId() ); } else { $timestamp = $wgArticle->getTimestamp(); }