Switched to compatible $dbr->timestamp() call rather than silly date() call for timestamps - should support Postgres now.

This commit is contained in:
Tim Laqua 2007-08-22 20:51:16 +00:00
parent 43b2ca821a
commit da90007ce8
2 changed files with 2 additions and 3 deletions

View file

@ -24,8 +24,7 @@ class ContributionScores extends SpecialPage
if ( $days > 0 ) {
$date = mktime() - (60*60*24*$days);
$dateString = date("Ymd",$date)."000000";
$dateString = $dbr->timestamp($date);
$sql .= "WHERE rev_timestamp > '$dateString' ";
}