Last modified: 2013-11-20 00:16:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58394, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56394 - Error message 'Created on Invalid Date' if date has parenthesis
Error message 'Created on Invalid Date' if date has parenthesis
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
MultimediaViewer (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Tisza Gergő
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-30 21:53 UTC by Fabrice Florin
Modified: 2013-11-20 00:16 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Media-Viewer-Date-Bug.png (423.42 KB, image/png)
2013-10-30 21:53 UTC, Fabrice Florin
Details

Description Fabrice Florin 2013-10-30 21:53:36 UTC
Created attachment 13634 [details]
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
Comment 1 Tisza Gergő 2013-10-31 22:39:35 UTC
[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/
Comment 2 Mark Holmquist 2013-11-20 00:16:51 UTC
Reopen if this is still an issue after the patch.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links