The starttimestamp is returned when you query prop=info&intoken=edit.
Note the returned timestamp should always be in UTC, formatted in ISO 8601
format (e.g. "2014-02-26T15:01:37Z").
On Wed, Feb 26, 2014 at 9:51 AM, Petr Bena <benapetr(a)gmail.com> wrote:
I am already doing that but I need to resolve conflict
in new page.
There is no talk page for a user. I am sending a warning to this user.
If some other user with faster internet write that talk page faster
than me, I will overwrite it effectively deleting his message (because
there is no base revision for non-existent page).
In fact it's even worse. I am using new section for the warning and in
this scenario, result is that we both send the warning of same level
in same moment for 2 different edits. Which produces
https://bugzilla.wikimedia.org/show_bug.cgi?id=61933
On Wed, Feb 26, 2014 at 3:48 PM, Jeremy Baron <jeremy(a)tuxmachine.com>
wrote:
On Feb 26, 2014 9:14 AM, "Petr Bena"
<benapetr(a)gmail.com> wrote:
How do you get current wiki time, so that you can
either calculate the
timezone or use the time?
How about using basetimestamp instead?
https://en.wikipedia.org/w/api.php says:
basetimestamp - Timestamp of the base revision
(obtained through
prop=revisions&rvprop=timestamp). Used to detect edit
conflicts; leave
unset to ignore conflicts
starttimestamp - Timestamp when you obtained the edit token. Used to
detect edit
conflicts; leave unset to ignore conflicts
-Jeremy
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l