Index: trunk/phase3/includes/api/ApiQueryBase.php |
— | — | @@ -228,7 +228,7 @@ |
229 | 229 | protected function addTimestampWhereRange( $field, $dir, $start, $end, $sort = true ) { |
230 | 230 | $db = $this->getDb(); |
231 | 231 | return $this->addWhereRange( $field, $dir, |
232 | | - $db->timestamp( $start ), $db->timestamp( $end ), $sort ); |
| 232 | + $db->timestampOrNull( $start ), $db->timestampOrNull( $end ), $sort ); |
233 | 233 | } |
234 | 234 | |
235 | 235 | /** |