Subject: | Recentchanges query fails with some valid rcstart formats |
When doing a recent changes query, the rcstart parameter must be in
epoch format (even though a variety of formats are supported by the
API), else a 'bad' query URL may be generated.
See: http://www.mediawiki.org/wiki/API:Recentchanges#Parameters and
http://www.mediawiki.org/wiki/API:Data_formats#Timestamps
My call looks like this:
my $rc_list = $mw->
list ({
action => 'query',
list => 'recentchanges',
## Get changes since:
rcdir => 'newer',
rcstart => $rcstart,
## Number of revisions to collect in each batch of results
## returned by the API
rclimit => '500',
## Filters:
rcshow => '!minor|!bot',
#For reference
#rctype => 'edit|new|log',
#rcexcludeuser => '',
## Properties to return. See:
## http://www.mediawiki.org/wiki/API:Recentchanges
rcprop =>
'user|timestamp|title|flags|loginfo'
},
{
## MW::API Config
## Max number of batches to collect (for debugging)
#max => 1
}
);