r95412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95411‎ | r95412 | r95413 >
Date:18:38, 24 August 2011
Author:reedy
Status:ok
Tags:
Comment:
Revert r87984

bug 26090 Reopened
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js
@@ -552,9 +552,8 @@
553553 $j.each( [ 'datetimeoriginal', 'datetimedigitized', 'datetime', 'date' ], function( i, propName ) {
554554 var dateInfo = metadata[propName];
555555 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 ) ) {
559558 dateObj = new Date( parseInt( matches[1], 10 ),
560559 parseInt( matches[2], 10 ) - 1,
561560 parseInt( matches[3], 10 ) );

Follow-up revisions

RevisionCommit summaryAuthorDate
r95628MFT to REL1_18 (extensions)...hashar15:32, 28 August 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87984Bug 26090 : Ignore unlikely EXIF dates in UploadWizarddiebuche15:16, 13 May 2011

Status & tagging log