Index: trunk/phase3/includes/api/ApiQueryWatchlist.php |
— | — | @@ -128,8 +128,12 @@ |
129 | 129 | 'wl_user' => $userId, |
130 | 130 | 'rc_deleted' => 0, |
131 | 131 | ) ); |
| 132 | + |
| 133 | + $db = $this->getDB(); |
132 | 134 | |
133 | | - $this->addWhereRange( 'rc_timestamp', $params['dir'], $params['start'], $params['end'] ); |
| 135 | + $this->addWhereRange( 'rc_timestamp', $params['dir'], |
| 136 | + $db->timestamp( $params['start'] ), |
| 137 | + $db->timestamp( $params['end'] ) ); |
134 | 138 | $this->addWhereFld( 'wl_namespace', $params['namespace'] ); |
135 | 139 | $this->addWhereIf( 'rc_this_oldid=page_latest', !$params['allrev'] ); |
136 | 140 | |
— | — | @@ -175,7 +179,7 @@ |
176 | 180 | $this->addWhere( 'rc_user_text != ' . $this->getDB()->addQuotes( $params['excludeuser'] ) ); |
177 | 181 | } |
178 | 182 | |
179 | | - $db = $this->getDB(); |
| 183 | + |
180 | 184 | |
181 | 185 | // This is an index optimization for mysql, as done in the Special:Watchlist page |
182 | 186 | $this->addWhereIf( "rc_timestamp > ''", !isset( $params['start'] ) && !isset( $params['end'] ) && $db->getType() == 'mysql' ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -283,6 +283,8 @@ |
284 | 284 | * (bug 27586) Remove duplication of props in ApiQueryStashImageInfo |
285 | 285 | by using ApiQueryImageInfo |
286 | 286 | * (bug 28226) prop=extlinks&eloffset should be an integer |
| 287 | +* (bug 28070) Fix watchlist RSS for databases that store timestamps in a |
| 288 | + real timestamp field. |
287 | 289 | |
288 | 290 | === Languages updated in 1.18 === |
289 | 291 | |