r41670 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41669‎ | r41670 | r41671 >
Date:22:37, 4 October 2008
Author:aaron
Status:old
Tags:
Comment:
Fix remaining PG timestamp issues
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -893,7 +893,7 @@
894894 protected function CUChangesLine( $row, $reason ) {
895895 global $wgLang;
896896 # Add date headers
897 - $date = $wgLang->date( $row->cuc_timestamp, true, true );
 897+ $date = $wgLang->date( wfTimestamp(TS_MW,$row->cuc_timestamp), true, true );
898898 if( !isset($this->lastdate) ) {
899899 $this->lastdate = $date;
900900 $line = "\n<h4>$date</h4>\n<ul class=\"special\">";
@@ -907,7 +907,7 @@
908908 # Create diff/hist/page links
909909 $line .= $this->getLinksFromRow( $row );
910910 # Show date
911 - $line .= ' . . ' . $wgLang->time( $row->cuc_timestamp, true, true ) . ' . . ';
 911+ $line .= ' . . ' . $wgLang->time( wfTimestamp(TS_MW,$row->cuc_timestamp), true, true ) . ' . . ';
912912 # Userlinks
913913 $line .= $this->sk->userLink( $row->cuc_user, $row->cuc_user_text );
914914 $line .= $this->sk->userToolLinks( $row->cuc_user, $row->cuc_user_text );
@@ -1053,7 +1053,7 @@
10541054 $dbr = wfGetDB( DB_SLAVE );
10551055 $cutoff_unixtime = time() - ($period * 24 * 3600);
10561056 $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime % 86400);
1057 - $cutoff = $dbr->addQuotes( wfTimestamp( TS_MW, $cutoff_unixtime ) );
 1057+ $cutoff = $dbr->addQuotes( $dbr->timestamp( $cutoff_unixtime ) );
10581058 return "cuc_timestamp > $cutoff";
10591059 }
10601060

Status & tagging log