Page MenuHomePhabricator

pywikibot.WbTime does not update precision when intermediate values are skipped
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • pywikibot.WbTime(year=2020, second=5)

What happens?: WbTime(year=2020, month=1, day=1, hour=0, minute=0, second=5, precision=9, before=0, after=0, timezone=0, calendarmodel=http://www.wikidata.org/entity/Q1985727)

What should have happened instead?: WbTime(year=2020, month=1, day=1, hour=0, minute=0, second=5, precision=14, before=0, after=0, timezone=0, calendarmodel=http://www.wikidata.org/entity/Q1985727)

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

RPI2026F1 triaged this task as Medium priority.

Change 866512 had a related patch set uploaded (by RPI2026F1; author: RPI2026F1):

[pywikibot/core@master] [Bugfix] Fix precision not being set incorrectly.

https://gerrit.wikimedia.org/r/866512

Change 866512 merged by jenkins-bot:

[pywikibot/core@master] [Bugfix] Fix precision not being set incorrectly.

https://gerrit.wikimedia.org/r/866512