showing a bogus current timestamp
the default /favicon.ico or disable it (if set to false)
* (bug 3347) strip linebreaks in math error source
* (bug 4841) Warning for non-logged-in edits
+* (bug 4867) Leave invalid EXIF date fields unformatted instead of
+ showing a bogus current timestamp
+
=== Caveats ===
case 'DateTime':
case 'DateTimeOriginal':
case 'DateTimeDigitized':
- $tags[$tag] = $wgLang->timeanddate( wfTimestamp(TS_MW, $val) );
+ if( preg_match( "/^(\d{4}):(\d\d):(\d\d) (\d\d):(\d\d):(\d\d)$/", $val ) ) {
+ $tags[$tag] = $wgLang->timeanddate( wfTimestamp(TS_MW, $val) );
+ }
break;
case 'ExposureProgram':