Page MenuHomePhabricator

Error message 'Created on Invalid Date' if date has parenthesis
Closed, ResolvedPublic

Description

Media-Viewer-Date-Bug.png

If a file has parenthesis in its date field, the Media Viewer's Lightbox View shows this error message, as shown in attached screenshot:

'Created on Invalid Date'

This corresponds to this date field content on Commons:

'18 February 2009 (according to EXIF data)'

... for this file:

https://commons.wikimedia.org/wiki/File:Sunrise_over_fishing_boats_in_Kerala.jpg

... as shown here on alpha multimedia site:

http://multimedia-alpha.wmflabs.org/wiki/Lightbox_demo


Version: unspecified
Severity: normal

Attached:

Media-Viewer-Date-Bug.png (705×926 px, 423 KB)

Details

Reference
bz56394

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:23 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz56394.

[1] should fix this: when the date cannot be parsed, it is displayed as-is. (The current code tries that as well, but apparently (new Date(datetime)) is not a good test.)

[1] https://gerrit.wikimedia.org/r/#/c/92298/

Reopen if this is still an issue after the patch.

Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:25 AM
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:22 AM