On Feb 26, 2014 10:09 AM, "Brad Jorsch (Anomie)" bjorsch@wikimedia.org wrote:
Note the returned timestamp should always be in UTC, formatted in ISO 8601 format (e.g. "2014-02-26T15:01:37Z").
Speaking of timestamp format, examples in api.php seem wrong for basetimestamp.
The examples use entirely numeric timestamp like you get when paging through [[special:log]] (in browser not API) The format returned by prop=revisions&rvprop=timestamp does match the format you described.
-Jeremy
On Wed, Feb 26, 2014 at 10:24 AM, Jeremy Baron jeremy@tuxmachine.comwrote:
Speaking of timestamp format, examples in api.php seem wrong for basetimestamp.
The examples use entirely numeric timestamp like you get when paging through [[special:log]] (in browser not API) The format returned by prop=revisions&rvprop=timestamp does match the format you described.
Those should work too, as should any other format recognized by MWTimestamp::setTimestamp().[1] But feel free to submit patches to update the api.php documentation.
[1]: https://git.wikimedia.org/blob/mediawiki%2Fcore.git/8c9c245f2ff506de275a5cab...
wikitech-l@lists.wikimedia.org