Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit b0a5a52

Browse files
Merge forwardport of magento/magento2#11351 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/11351.patch (created by @manuelson) based on commit(s): 1. d01bc6b 2. 0296657 Fixed GitHub Issues in 2.3-develop branch: - magento/magento2#11332: How to Fix the wrong input format of Customer date of birth (reported by @selusi)
2 parents 65b745f + 716f9af commit b0a5a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Customer/Block/Widget/Dob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function getHtmlExtraParams()
228228
*/
229229
public function getDateFormat()
230230
{
231-
return $this->_localeDate->getDateFormat(\IntlDateFormatter::SHORT);
231+
return $this->_localeDate->getDateFormatWithLongYear();
232232
}
233233

234234
/**

app/code/Magento/Customer/Test/Unit/Block/Widget/DobTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DobTest extends \PHPUnit\Framework\TestCase
3131
const YEAR = '2014';
3232

3333
// Value of date('Y', strtotime(self::DATE))
34-
const DATE_FORMAT = 'M/d/yy';
34+
const DATE_FORMAT = 'M/d/Y';
3535

3636
/** Constants used by Dob::setDateInput($code, $html) */
3737
const DAY_HTML =

0 commit comments

Comments
 (0)