Page MenuHomePhabricator

Incorrect create/edit time displayed in the curation toolbar
Closed, ResolvedPublicBUG REPORT

Description

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

  • User language set to Chinese any language other than English
  • Visit an arbitrary unpatrolled page

What happens?:
The date for page history is incorrect (use Chinese as an example here):

  • "创建于2022年11月2日,自2022年11月1日以来5次编辑" should be "创建于2022年11月22日,自2022年11月21日以来5次编辑"
  • The date inside "history" section is shown wrongly.

What should have happened instead?:
The date should be shown correctly

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

Other information (browser name/version, screenshots, etc.):
Tested on beta cluster, https://zh.wikipedia.beta.wmflabs.org/wiki/12345

image.png (664×1 px, 106 KB)
image.png (655×1 px, 106 KB)
zhen

Event Timeline

Restricted Application added subscribers: Ericliu1912, Aklapper. · View Herald Transcript

cc @SD0001, who has done some date/time work on PageTriage before.

The i18n strings controlling date formats can be edited from translatewiki.net. During the migration from date.js to moment, some of these may have stopped working correctly for non-English languages. (Since PageTriage is deployed only on enwiki, this wasn't considered a big deal.)

Should be fixed now on the beta cluster (for zh-hans and zh-hant languages), after https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageTriage/+/894429 was merged. @Stang, please recheck.

Stang assigned this task to MPGuy2824.

I could confirm this bug is fixed. Thanks!