Dalba created this task.
Dalba added a project: Pywikibot-core.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

Run the following script:

from pywikibot import *
from time import *
s = Site('fa', 'wpbeta')
print(s.server_time())
sleep(5)
print(s.server_time())
sleep(5)
print(s.server_time())

Result:

2018-08-19T07:22:28Z
2018-08-19T10:52:14Z
2018-08-19T10:52:19Z

Second and third timestamps make sense, but the first one should only be 5 seconds earlier. It seems that the cached result is being returned by mistake.


TASK DETAIL
https://phabricator.wikimedia.org/T202227

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: Aklapper, pywikibot-bugs-list, Dalba, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to