Skip to content

Commit 716f9af

Browse files
[2.3-develop] Forwardport of #11351
1 parent 0379ead commit 716f9af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: app/code/Magento/Customer/Block/Widget/Dob.php

+1-1
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
/**

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

+1-1
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)