Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -552,9 +552,8 @@ |
553 | 553 | $j.each( [ 'datetimeoriginal', 'datetimedigitized', 'datetime', 'date' ], function( i, propName ) { |
554 | 554 | var dateInfo = metadata[propName]; |
555 | 555 | if ( ! mw.isEmpty( dateInfo ) ) { |
556 | | - var matches = $j.trim( dateInfo ).match( yyyyMmDdRegex ); |
557 | | - // EXIF was founded in 1995, so anything before that is very unlikely |
558 | | - if ( ! mw.isEmpty( matches ) && parseInt( matches[1], 10 ) > 1994) { |
| 556 | + var matches = $j.trim( dateInfo ).match( yyyyMmDdRegex ); |
| 557 | + if ( ! mw.isEmpty( matches ) ) { |
559 | 558 | dateObj = new Date( parseInt( matches[1], 10 ), |
560 | 559 | parseInt( matches[2], 10 ) - 1, |
561 | 560 | parseInt( matches[3], 10 ) ); |