From 61276a7d6a8b9563014e4c8afdca8c647488c0ed Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 9 Jul 2008 17:41:02 +0000 Subject: [PATCH] Tweak to r37385: put the timestamp format normalization on the input read (Revision::getTimestampFromId()) instead of the middle tier (Skin::lastModified()) --- includes/Revision.php | 2 +- includes/Skin.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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(); } -- 2.20.1