Run the following script:
from pywikibot import * from time import * s = Site('en', 'wikipedia') print(s.server_time()) sleep(2) print(s.server_time()) sleep(2) print(s.server_time())
Result:
2018-08-18T11:23:28Z 2018-08-19T11:03:03Z 2018-08-19T11:03:06Z
Second and third timestamps make sense, but the first one should only be a few seconds earlier. It seems that the cached result is being returned for the first call by mistake.