We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3409c5 commit c3587c2Copy full SHA for c3587c2
app/code/Magento/Catalog/Block/Product/View/Options/Type/Date.php
@@ -83,7 +83,10 @@ public function getCalendarDateHtml()
83
84
$dateFormat = $this->_localeDate->getDateFormat(\IntlDateFormatter::SHORT);
85
/** Escape RTL characters which are present in some locales and corrupt formatting */
86
- $escapedDateFormat = preg_replace('/[^[:print:]]/', '', $dateFormat);
+ $patterns = [];
87
+ $patterns[0] = '/[^[:print:]]/';
88
+ $patterns[1] = '/[^MmDdYy\/\.\-]/';
89
+ $escapedDateFormat = preg_replace($patterns, '', $dateFormat);
90
$calendar = $this->getLayout()->createBlock(
91
\Magento\Framework\View\Element\Html\Date::class
92
)->setId(
0 commit comments