We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0379ead commit 716f9afCopy full SHA for 716f9af
app/code/Magento/Customer/Block/Widget/Dob.php
@@ -228,7 +228,7 @@ public function getHtmlExtraParams()
228
*/
229
public function getDateFormat()
230
{
231
- return $this->_localeDate->getDateFormat(\IntlDateFormatter::SHORT);
+ return $this->_localeDate->getDateFormatWithLongYear();
232
}
233
234
/**
app/code/Magento/Customer/Test/Unit/Block/Widget/DobTest.php
@@ -31,7 +31,7 @@ class DobTest extends \PHPUnit\Framework\TestCase
31
const YEAR = '2014';
32
33
// Value of date('Y', strtotime(self::DATE))
34
- const DATE_FORMAT = 'M/d/yy';
+ const DATE_FORMAT = 'M/d/Y';
35
36
/** Constants used by Dob::setDateInput($code, $html) */
37
const DAY_HTML =
0 commit comments