Tweak to r37385: put the timestamp format normalization on the input read (Revision...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 9 Jul 2008 17:41:02 +0000 (17:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 9 Jul 2008 17:41:02 +0000 (17:41 +0000)
includes/Revision.php
includes/Skin.php

index 8058e61..e1b4119 100644 (file)
@@ -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 );
        }
 
        /**
index 9627d9e..a9e44ab 100644 (file)
@@ -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();
                }