Index: trunk/phase3/includes/filerepo/OldLocalFile.php |
— | — | @@ -168,7 +168,7 @@ |
169 | 169 | if ( is_null( $this->requestedTime ) ) { |
170 | 170 | $conds['oi_archive_name'] = $this->archive_name; |
171 | 171 | } else { |
172 | | - $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $this->requestedTime ); |
| 172 | + $conds[] = 'oi_timestamp <= ' . $dbr->addQuotes( $dbr->timestamp( $this->requestedTime ) ); |
173 | 173 | } |
174 | 174 | $row = $dbr->selectRow( 'oldimage', $this->getCacheFields( 'oi_' ), |
175 | 175 | $conds, __METHOD__, array( 'ORDER BY' => 'oi_timestamp DESC' ) ); |