Index: trunk/extensions/UploadWizard/resources/mw.UploadWizardDetails.js |
— | — | @@ -455,7 +455,7 @@ |
456 | 456 | if ( !mw.isDefined( dateObj ) ) { |
457 | 457 | dateObj = new Date(); |
458 | 458 | } |
459 | | - dateStr = dateObj.getUTCFullYear() + '-' + pad( dateObj.getUTCMonth() ) + '-' + pad( dateObj.getUTCDate() ); |
| 459 | + dateStr = dateObj.getUTCFullYear() + '-' + pad( dateObj.getUTCMonth() + 1 ) + '-' + pad( dateObj.getUTCDate() ); |
460 | 460 | |
461 | 461 | // ok by now we should definitely have a dateObj and a date string |
462 | 462 | $j( _this.dateInput ).val( dateStr ); |