r102846 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102845‎ | r102846 | r102847 >
Date:07:30, 12 November 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Use the local user to get time offset and format, also removed wfTimestamp() call since this is already done in the function
Modified paths:
  • /trunk/phase3/includes/specials/SpecialAncientpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialAncientpages.php
@@ -61,7 +61,7 @@
6262 function formatResult( $skin, $result ) {
6363 global $wgContLang;
6464
65 - $d = $this->getLang()->timeanddate( wfTimestamp( TS_MW, $result->value ), true );
 65+ $d = $this->getLang()->userTimeAndDate( $result->value, $this->getUser() );
6666 $title = Title::makeTitle( $result->namespace, $result->title );
6767 $link = Linker::linkKnown(
6868 $title,

Comments

#Comment by Platonides (talk | contribs)   23:50, 14 November 2011

You alarmed me when I saw the truncated summary: "Use the local user to get time offset and format, also removed wfTimestamp() ..."

Status & tagging log