API: fixed timestamp format for 'continue' values
authorYuri Astrakhan <yurik@users.mediawiki.org>
Mon, 9 Jul 2007 05:19:07 +0000 (05:19 +0000)
committerYuri Astrakhan <yurik@users.mediawiki.org>
Mon, 9 Jul 2007 05:19:07 +0000 (05:19 +0000)
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryUserContributions.php
includes/api/ApiQueryWatchlist.php

index c9b4edc..7c3e686 100644 (file)
@@ -93,7 +93,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                while ($row = $db->fetchObject($res)) {
                        if (++ $count > $limit) {
                                // We've reached the one extra which shows that there are additional pages to be had. Stop here...
-                               $this->setContinueEnumParameter('start', $row->log_timestamp);
+                               $this->setContinueEnumParameter('start', wfTimestamp(TS_ISO_8601, $row->log_timestamp));
                                break;
                        }
 
index 6342113..07571db 100644 (file)
@@ -110,7 +110,7 @@ class ApiQueryRecentChanges extends ApiQueryBase {
                while ($row = $db->fetchObject($res)) {
                        if (++ $count > $limit) {
                                // We've reached the one extra which shows that there are additional pages to be had. Stop here...
-                               $this->setContinueEnumParameter('start', $row->rc_timestamp);
+                               $this->setContinueEnumParameter('start', wfTimestamp(TS_ISO_8601, $row->rc_timestamp));
                                break;
                        }
 
index 9b91b12..5a910cb 100644 (file)
@@ -75,7 +75,7 @@ class ApiQueryContributions extends ApiQueryBase {
                while ( $row = $db->fetchObject( $res ) ) {
                        if (++ $count > $limit) {
                                // We've reached the one extra which shows that there are additional pages to be had. Stop here...
-                               $this->setContinueEnumParameter('start', $row->rev_timestamp);
+                               $this->setContinueEnumParameter('start', wfTimestamp(TS_ISO_8601, $row->rev_timestamp));
                                break;
                        }
 
index a1de32a..5cf8ccf 100644 (file)
@@ -148,7 +148,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                while ($row = $db->fetchObject($res)) {
                        if (++ $count > $limit) {
                                // We've reached the one extra which shows that there are additional pages to be had. Stop here...
-                               $this->setContinueEnumParameter('start', $row->rc_timestamp);
+                               $this->setContinueEnumParameter('start', wfTimestamp(TS_ISO_8601, $row->rc_timestamp));
                                break;
                        }