on upgrade.
* Recentchanges RSS/Atom feeds now use a separate message for the description
to avoid cluttering it with useless wiki formatting
+* (bug 8417) Handle EXIF unknown dates
== Languages updated ==
case 'DateTime':
case 'DateTimeOriginal':
case 'DateTimeDigitized':
- if( preg_match( '/^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d):(\d\d)$/', $val ) ) {
+ if( $val == '0000:00:00 00:00:00' ) {
+ $tags[$tag] = wfMsg('exif-unknowndate');
+ } elseif( preg_match( '/^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d):(\d\d)$/', $val ) ) {
$tags[$tag] = $wgLang->timeanddate( wfTimestamp(TS_MW, $val) );
}
break;
'exif-compression-1' => 'Uncompressed',
'exif-compression-6' => 'JPEG',
+'exif-unknowndate' => 'Unknown date',
+
'exif-photometricinterpretation-2' => 'RGB',
'exif-photometricinterpretation-6' => 'YCbCr',