r59818 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59817‎ | r59818 | r59819 >
Date:02:01, 8 December 2009
Author:overlordq
Status:resolved (Comments)
Tags:
Comment:
Fix Parser transcache to correctly format timestamps
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -3189,7 +3189,7 @@
31903190 $dbw = wfGetDB(DB_MASTER);
31913191 $dbw->replace('transcache', array('tc_url'), array(
31923192 'tc_url' => $url,
3193 - 'tc_time' => time(),
 3193+ 'tc_time' => $dbw->timestamp( time() ),
31943194 'tc_contents' => $text));
31953195 return $text;
31963196 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r59869Followup to r59818, change transcache timestamp field to be consistent with o...overlordq02:26, 9 December 2009

Comments

#Comment by Tim Starling (talk | contribs)   00:47, 9 December 2009

Where is the associated DB schema change?

Status & tagging log