Can't we raise an error if basetimestamp is not a Timestamp, or is 0 or
empty?
So we might understand in which cases it still happens?


On Fri, Jan 29, 2016 at 9:28 PM, John Mark Vandenberg <[email protected]>
wrote:

> 'Pywikibot' has this problem. The results dont show which version is doing
> it.
> ---------- Forwarded message ----------
> From: "Brad Jorsch (Anomie)" <[email protected]>
> Date: 30 Jan 2016 6:06 am
> Subject: [Wikitech-l] *unclear-"now"-timestamp* (was Re: Bot operators:
> Please check your configuration)
> To: "Wikimedia developers" <[email protected]>, "MediaWiki
> API announcements & discussion" <[email protected]>
> Cc:
>
> On Fri, Jan 29, 2016 at 1:41 PM, BinĂ¡ris <[email protected]> wrote:
>>
>> > 2016-01-29 18:56 GMT+01:00 Brad Jorsch (Anomie) <[email protected]
>> >:
>> >
>> > > by going to
>> > > https://www.mediawiki.org/wiki/Special:ApiFeatureUsage, entering your
>> > > agent
>> > > (or any useful prefix of it), and looking for "https-expected".
>> > >
>> >
>> > What does *unclear-"now"-timestamp* mean here?
>> >
>>
>> For various API timestamp-typed parameters, you can pass unusual values
>> such as the empty string or "0" and it will be interpreted as meaning
>> "now", which doesn't make very much sense except for the fact that it has
>> always done that. If you really mean "now", you should pass that as the
>> value instead.
>>
>> action=edit even has to hack around this to avoid spurious edit conflicts
>> if you do it for the 'basetimestamp' parameter. Ideally we'd make empty
>> string and '0' be rejected as invalid timestamps, but first people have to
>> stop passing them in.
>>
>>
>> --
>> Brad Jorsch (Anomie)
>> Senior Software Engineer
>> Wikimedia Foundation
>> _______________________________________________
>> Wikitech-l mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
> _______________________________________________
> pywikibot mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>
>
_______________________________________________
pywikibot mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot

Reply via email to