http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95412
Revision: 95412 Author: reedy Date: 2011-08-24 18:38:49 +0000 (Wed, 24 Aug 2011) Log Message: ----------- Revert r87984 bug 26090 Reopened Modified Paths: -------------- trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js Modified: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js =================================================================== --- trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js 2011-08-24 18:37:55 UTC (rev 95411) +++ trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js 2011-08-24 18:38:49 UTC (rev 95412) @@ -552,9 +552,8 @@ $j.each( [ 'datetimeoriginal', 'datetimedigitized', 'datetime', 'date' ], function( i, propName ) { var dateInfo = metadata[propName]; if ( ! mw.isEmpty( dateInfo ) ) { - var matches = $j.trim( dateInfo ).match( yyyyMmDdRegex ); - // EXIF was founded in 1995, so anything before that is very unlikely - if ( ! mw.isEmpty( matches ) && parseInt( matches[1], 10 ) > 1994) { + var matches = $j.trim( dateInfo ).match( yyyyMmDdRegex ); + if ( ! mw.isEmpty( matches ) ) { dateObj = new Date( parseInt( matches[1], 10 ), parseInt( matches[2], 10 ) - 1, parseInt( matches[3], 10 ) ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs