Page MenuHomePhabricator

"monthname, year" dates are not recognized
Closed, DeclinedPublic

Description

Dates like "January 2000" are not recognized - moment.js only handles ISO-like dates, and falls back to the browser for everything else, and apparently at least Firefox can't deal with this format (even though both full english dates like "1 January 2000" and partial dates like "2000-01" work).

In general there are countless date formats and it would be futile to try recognizing all of them, but this one seems frequent enough to make an exception.


Version: unspecified
Severity: normal

Details

Reference
bz57307

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:27 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz57307.
bzimport added a subscriber: Unknown Object (MLST).

CommonsMetadata will soon handle <time> elements which are used a lot on Commons. This might become a non-issue after that.

What's the status of <time> elements in CommonsMetadata? Is there a card or bug filed for that?

There is now: T63701
Should be trivial (not guaranteed to fix this bug though).

Tgr claimed this task.

Per T68635, date parsing should happen in the API, not in the client.