Make partial dates in XMP not have the ommitted fields fulled out to 1's (reported...
authorBrian Wolff <bawolff@users.mediawiki.org>
Sat, 8 Oct 2011 18:40:00 +0000 (18:40 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sat, 8 Oct 2011 18:40:00 +0000 (18:40 +0000)
commitaa61882f3ef6d7b76e7b9b05c995504d1a2b20d1
treecbb59ba2aebd3069bb2e5959bbeaa7302bf47a4c
parentc04ace54359270656d9283c13eec10348d64bd63
Make partial dates in XMP not have the ommitted fields fulled out to 1's (reported by AVRS on irc).

Basically, in XMP you can specify partial date (for example 2011-04 for april 2011 with no day).
We were extracting that, and fulling out the day to 01 if it wasn't present (My original resoning when writing
the code was that the nice localized date functions need a full date, but that's a pretty poor rationale for displaying
wrong date). This changes it to just display such year-month things as YYYY:MM.
includes/media/FormatMetadata.php
includes/media/XMPValidate.php
tests/phpunit/includes/media/XMPValidateTest.php [new file with mode: 0644]